Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Use of custom alert labels in template #112

Closed
conradj87 opened this issue May 7, 2019 · 2 comments
Closed

[Question] Use of custom alert labels in template #112

conradj87 opened this issue May 7, 2019 · 2 comments
Assignees
Labels

Comments

@conradj87
Copy link

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.

@jnogol
Copy link
Collaborator

jnogol commented May 8, 2019

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.

@miguel-chacon
Copy link
Collaborator

@conradj87 Take a look to v2.3.1 for checking expectations fulfillment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants