Adding useful information to alerts from labels

I’d like to be able to add some more information to our alerts so that we can better process them with the tool that we use to handle alerts.

For example, lets say we have an alert that is triggering on an error from one of our kubernetes pods. This is easy enough to alert on but what if I wanted to add some things into the alert message such as the namespace this pod was running on, or maybe the node that it’s on. Is this possible?

I did find this:

which looks like what I want to do, or at least in the right direction but that doesn’t mention anything at all about where those labels come from or how they get created.

1 Like

@danjfinn1 I’m not sure if you saw the page about template data, this page describes the data that is passed to message templates: