You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checked that there is not already provided the described functionality
Description
I am using prom2teams in Kubernetes, and would like to add additional metadata to the message in teams - things like namespace, pod, etc... All of these are values on the alert when viewed in prometheus or in alertmanager.
I've created and configured a template to use with prom2teams, but I'm not able to figure out how to use any "custom" labels on the alerts. Is this possible? Looking at this line of code it appears that the template may be limited to some default labels/meta-data on the alert. Is there any way to access all the labels on the alert? I couldn't find any examples of this, and couldn't get it working by trial and error.
Yep, just realized that there's no place in the code that take into account custom fields. We're gonna work on that. Hope we can release a fix for that next week or so.
Prerequisites
Description
I am using prom2teams in Kubernetes, and would like to add additional metadata to the message in teams - things like namespace, pod, etc... All of these are values on the alert when viewed in prometheus or in alertmanager.
I've created and configured a template to use with prom2teams, but I'm not able to figure out how to use any "custom" labels on the alerts. Is this possible? Looking at this line of code it appears that the template may be limited to some default labels/meta-data on the alert. Is there any way to access all the labels on the alert? I couldn't find any examples of this, and couldn't get it working by trial and error.
Here's a screenshot of an example alert I'd like to leverage the labels on.
The text was updated successfully, but these errors were encountered: