Hello there!
When rule was triggered - i receive notification in telegram from grafana. But sometimes i receive grouping notification (2 or 3 messages in one panel same time). How can i separate notifications that i can get determined notification (1 message at 1 time)?
Hi @vanilaaabear welcome to the community.
Can you please share some screenshots as how you configured the alert notifications so that we can have more information.
Thanks
Hello! I have the same problem
Template:
{{ define "myalert" }}
[{{.Status | toUpper }}] {{ .Labels.alertname }}
{{ .Annotations.description }}
{{ .Annotations.summary }}
{{ .Annotations.DashboardURL }}
{{ end }}
{{ define "m3telegram" }}
{{ if gt (len .Alerts.Firing) 0 }}
{{ range .Alerts.Firing }} {{ template "myalert" .}} {{ end }}
{{ end }}
{{ if gt (len .Alerts.Resolved) 0 }}
{{ range .Alerts.Resolved }} {{ template "myalert" .}} {{ end }}
{{ end }}
{{ end }}
Then the message is too long, telegram api reply 400 error code:
logger=context traceID=00000000000000000000000000000000 userId=3 orgId=1 uname=*** t=2022-09-02T07:44:09.610846222+03:00 level=info msg="Request Completed" method=GET path=/api/live/ws status=400 remote_addr=91.230.60.177 time_ms=11 duration=11.956743ms size=12 referer= traceID=00000000000000000000000000000000