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

Prometheus "job" label not displaying in Teams #146

Closed
1 task done
HenchmanNo21 opened this issue Sep 11, 2019 · 2 comments
Closed
1 task done

Prometheus "job" label not displaying in Teams #146

HenchmanNo21 opened this issue Sep 11, 2019 · 2 comments
Labels

Comments

@HenchmanNo21
Copy link

Prerequisites

Description

I am attempting to get the "job" label from the Prometheus alert to pass through to Teams, but it is not showing up. All other "extra_labels" in my alert are displaying as expected. I am simply using the v1 Swagger UI "Try it out" feature to send the test alerts, and I see that "job" is a label present in the example value for the payload.

Steps to Reproduce

  1. Load the Prom2Teams API v1 SwaggerUI page
  2. Click "POST" / API
  3. Click "Try it out"
  4. Add custom JSON alert
  5. Click Execute

Expected behavior: All "extra_labels" show up in Teams message as key / value

Actual behavior: All "extra_labels" EXCEPT "job" label show up in Teams

Reproduces how often: 100%

Versions

2.5.0

Additional Information

The following is the test JSON alert I am using:

{
"status": "firing",
"receiver": "app_perf_500_errors",
"version": "4",
"externalURL": "http://10.60.100.56:9093",
"alerts": [
{
"status": "firing",
"startsAt": "2019-09-11T18:07:05.325Z",
"endsAt": "2019-09-11T18:08:05.325Z",
"annotations": {
"summary": "Response taking more than 10 seconds",
"description": "Requests to /chris/test on test-service taking more than 10 seconds to resolve"
},
"labels": {
"job": "test-service",
"hostname": "CHRISTESTHOST001",
"severity": "medium",
"location": "Chris Test Location",
"alertname": "AppResponseTimeGreaterThanThreshold",
"method": "POST",
"operator": "Operator",
"path": "/chris/test",
"status_code": "200"
},
"generatorURL": "10.60.100.56:9090"
}
]
}

This was referenced Sep 12, 2019
@miguel-chacon
Copy link
Collaborator

Hi @HenchmanNo21 ,

Try latest release (2.5.1)

@HenchmanNo21
Copy link
Author

@miguel-chacon -- thank you so much! That's fixed it for me. The "job" label is now displaying along with the other "extra_labels".

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

2 participants