Transforming email labels in alert

Hello
I set up some basic alerting for a thermostat, if it drops below a certain temp, alert
It works but the data from the api I use to pull the the data into Prometheus shows each room as a numeric id and this comes in the email, I would like to somehow convert that in the email to be a room name, I have the table of ids to names but I’m struggling to work out how it’s done so any pointers or examples would help please


Thanks a lot

I assume you use Grafana-managed alerting. If your room list is static, then you can create an annotation template and map the label room_id to a name.

1 Like