Search code examples
azuregrafanaappinsights

Why is it not all azure app-insights metric appear in Grafana


I am setting up some Grafana dashboards which retrieve data from Azure. I have managed to setup most of the required panels but one that is eluding me is Authenticated Users.

So in azure we have app-test-UK-dev-euw-appinsights -> Metrics enter image description here

And this returns accurate data in Azure

enter image description here

So over in Grafana I can see most of the Log-based metrics enter image description here

And if I choose any of those I see data that matches what I see in Azure, all cool and froody so far. But what I cannot select from the pulldown list in Grafana is Users, it is simply not there.

enter image description here

Is this correct? Why do some Log-based metrics appear and a few do not? Is it me, am I missing something here?

Any thoughts please folks.


Solution

  • As mentioned in comments, some metrics, such as Authenticated Users, might not be exposed through the plugin.

    Grafana uses the Azure Monitor data source plugin to retrieve metrics from Azure services. enter image description here

    However, this plugin might not support all types of metrics. Refer Supported metrics with Azure Monitor DataSource plugin for supported metrics.

    Metrics like "Dependency calls", "Page views", etc are predefined and commonly available through Azure Monitor.

    Custom metrics such as "Users, authenticated" require querying Azure Monitor Logs using KQL. Something like this-

    customMetrics
    | where name == "Users, authenticated"
    | summarize Count = dcount(tenantId) by bin(timestamp, 1h)
    

    References: