I have created the following notification template in grafana alerting.
{{ define "test_template" }}
{{ if gt(len .Alerts.Firing) 0 }}
{{ range .Alerts }}
**subject**: {{ .Annotations.summary }}
**description**: {{ .Annotations.description }}
{{ end }}
{{ else }}
**subject**: issue_resolved
**description**: issue_resolved
{{ end }}
{{ end }}
Provided contact point as Microsoft teams. In contact point settings, I am trying to parse, the
value of the subject key in test_template in Title section and
value of the description key in test_template in Message section
but I am receiving any empty message in the microsoft teams. I do have verified
{{ .Annotations.summary }} and {{ .Annotations.description }}
are being parsed. I can say the issue is with the variable reference from notification template to the contact point settings
Now, how to parse the subject and description fields of test_template named notification template accurately in contact point (Microsoft Teams) settings of the grafana alerting ?