prometheus / alertmanager

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

msteamsv2 receiver doesn't allow anymore to add html code #4109

Open xinity opened 2 weeks ago

xinity commented 2 weeks ago

What did you do? tried the latest rc release to test the msteamsv2 receiver i wanted to add some color on the notification received on teams channel like this one:

What did you expect to see? something like this: https://github.com/prometheus/alertmanager/issues/3642#issuecomment-2023194209

What did you see instead? Under which circumstances? raw html code in the teams notification like this:

[FIRING<hr style='border-color: #808080; border-width: 5px;' />] (cluster: )
<hr style='border-color: #808080; border-width: 5px;' /><strong>37.25% throttling of CPU in namespace victoriametrics for container vmagent in pod vmagent-vm-dev-5bfcdfc9bc-254s7.</strong><br /><br />
<strong>summary</strong> Processes experience elevated CPU throttling.<br />
<strong>alertgroup</strong> kubernetes-resources<br />
<strong>alertname</strong> CPUThrottlingHigh<br />
<strong>container</strong> vmagent<br />
<strong>namespace</strong> victoriametrics<br />
<strong>observer_cluster</strong> gke_dev-0<br />
<strong>pod</strong> vmagent-vm-dev-5bfcdfc9bc-254s7<br />
<strong>severity</strong> info<br />
<br /><a href="http://vmalertmanager-vm-dev-0:9093/#/silences/new?filter=%7Balertgroup%3D%22kubernetes-resources%22%2C%20alertname%3D%22CPUThrottlingHigh%22%2C%20container%3D%22vmagent%22%2C%20namespace%3D%22victoriametrics%22%2C%20observer_cluster%3D%22gke_dev-0%22%2C%20pod%3D%22vmagent-vm-dev-5bfcdfc9bc-254s7%22%2C%20severity%3D%22info%22%7D" target='_blank'><button>Silence alert</button></a><br /><br /><hr style='border-color: #808080; border-width: 5px;' /><strong>72.97% throttling of CPU in namespace victoriametrics for container vmagent in pod .</strong><br /><br />