Hi Team,
I’m facing one issue where when multiple alerts get grouped in a single webex/slack message, it gets truncated due to characters limit(may be 4000 chars), so is there any way in grafana alert where we can restrict the number of alerts to be grouped in single message?
For Ex, if there are 13 alerts to be sent and alerts count to be grouped is set to 4, it should send 4 messages, 1-3 messages with 4 alerts each and last one message with 1 alert.
1 Like
This doesn’t help in our case as this for a single service, there are no different labels. so wanted to group by count of alerts.
Yes, in Grafana Alerting, you can control the number of alerts grouped in a single message using Grouping & Routing in Contact Points. While Grafana doesn’t natively limit the number of alerts per message, you can work around it by using Grafana Loki/Prometheus labels to group alerts and adjust the Group Interval & Wait Time to force multiple messages.
For a more controlled approach, consider using a custom Webhook Receiver that chunks alerts into smaller groups before sending them to Webex/Slack.