Policy Structure
Notification policies form a tree structure where alerts are matched against routes:Root Route
Every notification policy tree has a root route that acts as the default:The root route:
- Has no matchers (matches all alerts)
- Cannot be deleted
- Provides default timing and grouping
- Acts as fallback when no child routes match
Label Matchers
Matchers determine which alerts a route handles:Grouping
Grouping combines related alerts into single notifications:Group By Labels
Special Grouping
Timing Controls
Group Wait
Wait time before sending the first notification for a new group:Group Interval
Wait time before sending updates about existing groups:Repeat Interval
Wait time before resending a notification for the same group:Continue Flag
Thecontinue flag controls routing behavior:
1
Without Continue (false)
Alert matches → Route to contact point → Stop processing
2
With Continue (true)
Alert matches → Route to contact point → Continue to next sibling route
Mute Timings
Mute timings suppress notifications during specific time periods:Mute Time Intervals
Active Time Intervals
Time intervals are defined separately and referenced by name in routes.
See the Mute Timings documentation for details on creating time intervals.
Named Routes
Routes can be named for easier management:Policy Examples
Multi-Tier Routing
Environment-Based Routing
Auto-Generated Routes
Grafana automatically generates routes for alert rules with inline notification settings:Backend Configuration
Validation Rules
1
Receiver Exists
Referenced contact point must exist
2
Time Intervals Exist
Mute/active time intervals must be defined
3
Valid Matchers
Matchers must have valid regex patterns
4
No Circular Routes
Routes cannot reference themselves
5
Timing Constraints
repeatInterval ≥ groupInterval
Best Practices
Use specific matchers
Use specific matchers
Match on stable, meaningful labels like
team, service, severity rather than dynamic values.Group intelligently
Group intelligently
Group by labels that represent a single incident (e.g.,
alertname, cluster, service).Set appropriate timings
Set appropriate timings
groupWait: 30s-1m for collecting related alertsgroupInterval: 5m for update frequencyrepeatInterval: 4h-12h to avoid notification fatigue
Use continue sparingly
Use continue sparingly
Only use
continue: true when alerts truly need multiple destinations. It can cause notification duplication.Test your policies
Test your policies
Use the notification policy preview to verify routing before deploying.
Related Resources
Contact Points
Configure notification destinations
Alert Rules
Create rules that generate alerts
Silences
Temporarily mute notifications
Overview
Understand the alerting architecture