How to add metrics to the pre-set metrics in Metrics Explorer or Monitor/Metrics

PerhapsCloud 41 Reputation points
2024-09-10T16:07:43.9233333+00:00

In Azure Monitor then Metrics, you can select Azure VMs as scope and pull a list of pre-set metrics i.e. CPU percentage, memory available, etc..... But it lacks certain metrics such as the network bandwidth usage, or disk free space, etc.

So what I did was I created a Data Collection Rule, in which Data Source is from VMs metrics and added those network bandwidth usage/disk free space metrics etc.... and destination was set to Azure Metrics. The rule was created successfully and I was also able to associate all Azure VMs to the rule. Everything looked good.

But when I went back to the Monitor/Metrics, I still don't see those needed metrics to show up from the list.

Did I do it right or I missed something? Thanks,

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,285 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,929 questions
{count} votes

Accepted answer
  1. Vinodh247 21,881 Reputation points
    2024-09-11T14:01:09.98+00:00

    Hi PerhapsCloud,

    Thanks for reaching out to Microsoft Q&A.

    The metrics are not showing up in the metrics explorer could be due to a few reasons, consider the following points;

    1. Data Collection Rule Latency: After creating a DCR, there can be some delay before the data starts flowing into Azure Monitor and becomes visible in Metrics Explorer. Wait for a bit and then refresh the metrics dashboard to see if the new metrics appear.
    2. Correct Namespace and Metric Type: Ensure that when you go back to Metrics Explorer, you are selecting the correct namespace for the custom metrics. Sometimes custom metrics can appear under a different namespace or category than the default "VM metrics." Check if there are new metric namespaces like 'CustomMetrics' or 'GuestMetrics', depending on what was set in the DCR.
    3. Metrics Aggregation: Depending on the type of metric you're collecting (such as network bandwidth or disk space), these metrics may be aggregated over a certain time period. Check if you can modify the aggregation settings (average, minimum, maximum) in the Metrics Explorer to display these metrics properly.
    4. Data Collection Rule Configuration: Double-check the configuration of the DCR, especially the metric destination (Azure Metrics). Ensure that the rules for collecting network bandwidth usage or disk free space are properly set and mapped to the right destination.
    5. Check Logs and Diagnostic Settings: Use Log Analytics or check diagnostic logs to verify if data is being collected as expected. If metrics are not showing up in Metrics Explorer, they may still be visible in logs, which can help debug the issue.

    You can verify these steps and see if the metrics show up after allowing some time for the data to propagate. If you're still not seeing the desired metrics, there might be an issue with the scope or permissions of the Data Collection Rule, and you may need to review that configuration.

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.


0 additional answers

Sort by: Most helpful

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.