azuredashboardmetrics

How to show metrics broken down by dimensions on the dashboard?


I have the app sending metrics to the Application Insights. It sends the same metric name with different custom dimensions enter image description here

I want to show these numbers on the chart. I create a new dashboard, add chart there, choose my ApplicationInsights instance and find my metric there. As a result I see the following enter image description here

It looks like it shows me the sum of all the dimensions. But along with the sum, I want to see different dimensions (gen0, gen1, gen2, etc.).

"Apply splitting" button is inactive. If I hover cursor over it, it says enter image description here

The question is: how can I show metrics broken down by dimensions on the chart?


Solution

  • How can I show metrics broken down by dimensions on the chart?

    Viewing broken down custom metrics will only be shown by selecting Log based metrics >> custom as shown below.

    In order to view the custom metrics with dimensions, the custom metrics (preview) under Usage and estimated costs must be enabled on the Application Insights instance in the below manner.

    enter image description here

    Once it is enabled, I have tried below sample custom metrics query in my environment and was able to apply splitting by selecting custom >> HeartbeatState under Log based metrics.

    enter image description here

    Dashboard:

    enter image description here

    enter image description here

    Note: By default, the Dashboard mechanism will not let the users apply splitting directly by choosing custom azure.applicationinsights instance as shown below. If you want to view the custom metrics, the above approach would be recommendable.

    enter image description here

    Reference Custom Metrics MSDoc and also the Github issue for more relevant information