prometheus / alertmanager

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

MSTeams integration severity not recognized #3606

Open rgarcia89 opened 1 year ago

rgarcia89 commented 1 year 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 1 year 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 1 year 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