Hi,
If I understand correctly you are sending diagnostic settings from File share service on storage account to Log Analytics but you are not seeing FileCapacity metric in the logs. The reason for that is this is by design. Not all metrics can be send to Log Analytics when diagnostic settings are configured. You can check this page: Supported metrics for Microsoft.Storage/storageAccounts/fileServices. In the table there column DS export. This stands for diagnostic settings export. That column designates if the metric will can be exported via diagnostic settings. In this case FileCapacity metrics is not exportable via diagnostic settings thus it does not appear. What I can suggest is to use Azure Monitor workbook. Workbooks can visualize data from metrics, that way you will not need the metric to be available in Log Analytics to visualize it.
Update: Another workaround you can try is Metrics export through data collection rules (Preview). It is not clear if the diagnostic setting limitation on metrics apply also to that new feature. Take into consideration that is preview feature and supported only on certain regions.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.