Skip to content

Commit 93ecb90

Browse files
authored
Merge pull request DataDog#10855 from DataDog/nils/monitor-priority-override
Add priority override instructions
2 parents 2b97417 + 9ab3c23 commit 93ecb90

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

content/en/monitors/notifications.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,21 @@ Learn how to configure your monitors for those use cases in [the example section
7171
### Priority
7272

7373
Add a priority (optional) associated with your monitors. Values range from P1 through P5, with P1 being the highest priority and the P5 being the lowest.
74+
To override the monitor priority in the notification message, use `{{override_priority 'Pi'}}` where `Pi` is between P1 and P5.
75+
76+
For example, you can set different priorities for `alert` and `warning` notifications:
77+
78+
```
79+
{{#is_alert}}
80+
{{override_priority 'P1'}}
81+
...
82+
{{/is_alert}}
83+
84+
{{#is_warning}}
85+
{{override_priority 'P4'}}
86+
...
87+
{{/is_warning}}
88+
```
7489

7590
## Notify your team
7691

0 commit comments

Comments
 (0)