I have a CPU usage panel for an Azure App Service where I have added the resource name to the label.
I want to include this label name in my alert descriptions, but I am unable to do so.
Can you please assist me in getting the resource name on my alerts?
Hi,
If it’s in your alert labels (it should based on your screens), you can access it by {{ $labels.resourcename }}
. More info here
Hi @dawiddebowski
Thank you for your input
I don’t have Resource name in my alert labels.
These are all the things I have in my labels. Is there another way I can get the resource name?
Thanks,
Zeeshan
Can you share the alert configuration? Query (you can cross it out if it contains sensitive data) and conditions / reduces / thresholds? Are you using Classic Conditions or other Expressions?
What’s your Grafana version?
Hi @dawiddebowski
I have added the CPU usage of three app services to a panel and am trying to integrate an alert notification every hour showing their latest count
Thanks,
Zeeshan
I am using azure managed grafana ver 10.4.15
And if you click preview, what labels do you have in Math
expression? To use the label, it has to be there.