I’ve been on a templating adventure with Grafana for the last couple of days (Grafana v9.4) and MSTeams.
This is the message for a single alert:
The result is pretty readable now but there is an additional title (“Alert:”) in each Teams post that I can’t for the life of me figure out where is coming from. My guess is that this is a part of the default template that is seeping through from somewhere, somehow, since the line “alert:” does not appear twice or additionally in any of the templates that I’ve made (I have templates for the message, the alerts and the title of the message)
Can I override this? It’s a minor annoyance compared to what the messages used to look like so if it can’t be done, I’m still pretty happy.
Since I’m posting anyway, I’ve tried to get headers (markdown ##Header) to work in the MSTeams template. It isn’t parsing (shows up as escaped instead of being formatted as a header. I have tried ##Header, ##Header##, ## Header and ## Header ## to no avail. Conversely I’ve got bold text, bulletpoints and Italics to work fine. Is this supported at all for MSTeams as a contact point?
Hi! I think there is an error in the alert_test template on Line 3. You have {{.Labels. }} which is invalid. I think you want {{ .Labels }} without the second dot?