Parameter | Description | When to Adjust |
---|---|---|
--group-wait | Initial delay before sending first notification. | Decrease for more urgent alerts. Increase to collect more alerts in a group. |
--group-interval | Delay before sending updated notifications for the same group. | Decrease for frequently changing alerts. Increase to reduce notification frequency. |
--repeat-interval | Delay before resending an unresolved alert. | Decrease for critical alerts that need attention. Increase to reduce alert fatigue. |
./add-alerting-target.sh \ --type webhook \ --name grouped-alerts \ --group-by severity,instance \ --webhook-url https://webhook.example.com
./add-alerting-target.sh \ --type webhook \ --name specific-alerts \ --matchers "severity=critical,instance=~prod.*,alertname!=TestAlert" \ --webhook-url https://webhook.example.com
./add-alerting-target.sh \ --type webhook \ --name custom-timing-alerts \ --group-wait 10s \ --group-interval 1m \ --repeat-interval 30m \ --webhook-url https://webhook.example.com