I am using the Grafana Oncall template and in that getting value string in
“valueString”: “[ var=‘B0’ metric=‘Deploy-QA-MAIN-1 (GH)’ labels={} value=1 ]”,
this way ,
As grafana Oncall using the Jinja 2 template can u please help me to print
this value in list format Like below
metric=‘Deploy-QA-MAIN-1 (GH)’
value=1
That github repository is where the docs direct community members looking for help with on-call templates. If you have a cloud subscription, support may also be able to help you with this one.
I am trying to upgrade grafana from v8 to v9 and I have done below things:
I have upgraded from grafana v8 to v9,
Added data source: Azure monitor,
Added Notifying contact points, Created dashboard with Azure Resources(Virtual Machines),
however, after adding dashboards and configuring alerts, I am getting “metric name”, “threshold value” of thatresource but, not getting the “resourcename” while sending the alerts on Notifying contact point
You might need to update your alert message template to include those labels. Check out my answer in this post to see an example.
Pay special attention to the step where you can use the preview alerts button when you’re configuring the alert. It will show you all of the available labels that can be referenced in your alert.
Even after configuring the template, I am not getting the “resourcename” of the Azure resources
in Unified alerting of grafana version 9+
Kindly help me
@proharshraj10 you’ll want to replace the label names in my example with your own. For example, if you have a label called resourcename you would use something like this in your annotation:
{{ $values.A.Labels.resourcename }}
If you can provide a screenshots to your post it might help the community to see what steps you’ve followed and give more specific advice. Some of these are in different parts of the alert UI, you can refer back to my other post for help finding them.
the output of the preview alert button on your alert configuration page