How do i get data from the value string?

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: