prometheus / alertmanager

Prometheus Alertmanager
https://prometheus.io
Apache License 2.0
6.57k stars 2.14k forks source link

MSTeams integration severity not recognized #3606

Open rgarcia89 opened 9 months ago

rgarcia89 commented 9 months ago

What did you do? With the former Prom2Teams integration I was using, Microsoft Teams was showing a orange bar for severity = warning and a red bar for severity = critical. This is not working with the Alertmanager MSTeams integration.

What did you expect to see? Severity warning in prom2teams image

What did you see instead? Under which circumstances? Severity warning in Alertmanager MSTeams integration image

Environment kube-prometheus

grobinson-grafana commented 9 months ago

Hi! 👋 Alertmanager does not have severities as such, in most cases severity is just another label. I suspect Prom2Teams might have taken a more opinionated position and interpreted labels called severity to change the color?

rgarcia89 commented 9 months ago

Hi @grobinson-grafana true story. I just checked the prom2teams MessageCard template. They do indeed use the severity to change the color https://github.com/idealista/prom2teams/blob/baba8616a645fa8aa22bd8db7a3085cb2c3e85c8/prom2teams/resources/templates/teams.j2#L14