How to View Azure Fileshare Used Capacity in Logs and Display in a Dashboard?

Suthii09 0 Reputation points
2025-02-04T08:07:35.4333333+00:00

Hi,

I want to see the used capacity in Azure Fileshare and display the results in a dashboard. However, it is not working as expected. I am only getting these outputs:

User's image

Yet, I can see the used capacity under Insights:

User's image

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,452 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,359 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 25,771 Reputation points MVP
    2025-02-04T09:11:36.83+00:00

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.