I have alerts setup and working in Grafana 9, mostly OK.
When i get the alerts they have something like this in the text,
Value: [ var=‘B0’ metric=‘rpi3’ labels={name =up, instance=rpi3:9100, job=raspberry, short_hostname=rpi3} value=0 ]
How do i separate out the value in metric (rpi3) and value (0) to put them in say the Labels section in the email or somewhere else in the email.
I want to make them easier to see/read.
1 Like
@malcolm16 if you still need help with this, I posted a solution in this thread:
Edited this solution to add the most common answers in this thread in one place, including template functions and labels with dots in the name - read through to the end for those
welcome to the community @baileyheit1 !
This is a really common question and I’m still learning how to access the values out of the alert query too. I hope this is a helpful example - I tried to make it very detailed for the benefit of other community users, even though I can tell you already know how to do s…