Hello How can I notify a user when sending a message using teams notification channel ? Here is t...
s
Hello How can I notify a user when sending a message using teams notification channel ? Here is the default settings I got:
Copy code
{{ range .Alerts -}}

     *Alert:* {{ .Labels.alertname }}{{ if .Labels.severity }} - {{ .Labels.severity }}{{ end }}


     *Summary:* {{ .Annotations.summary }}
     *Description:* {{ .Annotations.description }}
     *RelatedLogs:* {{ if gt (len .Annotations.related_logs) 0 -}} View in <{{ .Annotations.related_logs }}|logs explorer> {{- end}}
     *RelatedTraces:* {{ if gt (len .Annotations.related_traces) 0 -}} View in <{{ .Annotations.related_traces }}|traces explorer> {{- end}}

     *Details:*
       {{ range .Labels.SortedPairs }} • *{{ .Name }}:* {{ .Value }}
       {{ end }}
     {{ end }}
It would be great if I can mention a user on teams, any advice ?
s
Thanks @Srikanth Chekuri, I am asking about MS Teams, can I simply type the syntax inside the description settings ? ex: above
*Details:*
as in alert description ?