Use alert escalation policies to control when and how often you receive alerts when checks start failing, degrade, or recover. This helps you fine-tune your alerting to reduce noise and ensure timely alerts.
Configuration
Configure your alert escalation policies using the AlertEscalationBuilder, which provides helper methods for the different escalation strategies:
| Method | Description | Parameters |
|---|
runBasedEscalation() | Alert after N consecutive failed runs | (failedRuns, reminders, parallelRunFailureThreshold) |
timeBasedEscalation() | Alert after N minutes of continuous failures | (minutesFailing, reminders, parallelRunFailureThreshold) |
Alert Escalation Builder Methods
Creates an alert escalation policy that triggers after a specified number of consecutive failed runs.Usage:Parameters:| Parameter | Type | Required | Default | Description |
|---|
failedRuns | number | ✅ | 1 | Number of consecutive failed runs before alerting |
reminders | object | ❌ | - | Reminder notification configuration |
parallelRunFailureThreshold | object | ❌ | - | Parallel run failure percentage threshold |
Examples:Use cases: Immediate alerting and noise reduction for flaky services.
Creates an alert escalation policy that triggers after a specified duration of continuous failures.Usage:Parameters:| Parameter | Type | Required | Description |
|---|
minutesFailing | number | ✅ | Minutes of continuous failures before alerting |
reminders | object | ❌ | Reminder notification configuration |
parallelRunFailureThreshold | object | ❌ | Parallel run failure percentage threshold |
Examples:Use cases: Batch job monitoring, slow services, time-sensitive operations.
Configure reminder notifications while an alert is active.Usage:Parameters:| Parameter | Type | Required | Default | Description |
|---|
interval | number | ❌ | 5 | Minutes between reminder notifications: 5, 10, 15, 30 |
amount | number | ❌ | 0 | Number of reminder notifications to send: 0, 1, 2, 3, 4, 5, 100000 |
Examples:Use cases: Alert fatigue prevention, escalation management, notification frequency control.
parallelRunFailureThreshold
Configure threshold for checks running in parallel across multiple locations.Usage:Parameters:| Parameter | Type | Required | Default | Description |
|---|
enabled | boolean | ✅ | false | Whether to use parallel run failure threshold |
percentage | number | ❌ | 10 | Percentage of parallel runs that must fail (10-100, in increments of 10) |
Examples:Use cases: Multi-region monitoring, CDN availability, redundant service checking.
Examples
Reminder Limits: Be cautious with reminder settings. Too many reminders can lead to alert fatigue, while too few might cause important issues to be overlooked.
Parallel Run Thresholds: Only use parallel run failure thresholds for checks that run in multiple locations simultaneously (runParallel: true).