Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Datadog how do i change a monitor to a single alert with no recovery

So i currently have a monitor set up that sends an alert, but after 5 mins it also send a recovery alert. What i wanted to find out was is it possible to have a monitor that only sends the alert but no recovery alert.

I need a one off alert on error thats it.

like image 705
user1555190 Avatar asked Nov 24 '25 22:11

user1555190


1 Answers

To extend onto draav's answer, your notification template should look like this when notification needs to be sent only in case of alert

{{#is_alert}}

This is my alert content!

@[email protected]
{{/is_alert}}

This approach can be further extended when we want to notify different users for different type of notifications.

Below example sends alert notification to [email protected] and recovery notification to [email protected].

{{#is_alert}}

Something went wrong!

@[email protected]
{{/is_alert}}

{{#is_alert_recovery}}

Things are back to normal!

@[email protected]
{{/is_alert_recovery}}
like image 102
dds101010 Avatar answered Nov 27 '25 23:11

dds101010



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!