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;
- 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.
- 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.
- 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.
- 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.
- 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.