MS Teams notification template (Grafana Version 10.4.1)

Can someone please help me here, not sure what I’m missing. How do I also get my alerts to be more readable?

Below are my labels and preview

My Contact Point message looks like this
image
Is there a reason my alerts don’t carry a timestamp as shown in the preview above?

  1. What exactly do you mean by making your alerts more readable?
  2. Timestamp doesn’t mean much when you are generating an alert from timeseries data. Let’s say you have a period of 1 hour and you fire the same alert every minute, which timestamp exactly do you use? Besides, shouldn’t you consider the creation time of your alert the beginning of alert? In that sense what would the timestamp be needed for?

Thank you for getting back to me @tonyswumac. I guess the right question for #1 point is if I can use templates for my alerts to Teams and if so where do I use them. When I use the “Optional Microsoft Teams settings” section and replace the {{ template “default.message” }} I get everything printed in my alert as seen below, it doesn’t pick up anything. I’ve tried json and go


Also can I use adaptive cards here? I guess I really need direction on where in grafana I should be configuring all this because as said above, I’ve tried my contact point Teams settings and it hasn’t worked. Thanks again

Have you tried this? Grafana Alerting: A guide to templating alert notifications

If your query returns labels you should be able to annotate your alert messages with them. I don’t use Grafana alert directly (I use ruler/alertmanager), so hopefully someone more knowledge can answer.