-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Watchdog monitor example (#2223)
* Update Watchdog monitor example * update source file --------- Co-authored-by: Sherzod Karimov <[email protected]>
- Loading branch information
Showing
2 changed files
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
resource "datadog_monitor" "watchdog_monitor" { | ||
name = "Watchdog Monitor TF" | ||
name = "Watchdog detected an anomaly: {{event.title}}" | ||
type = "event-v2 alert" | ||
message = "Check out this Watchdog Service Monitor" | ||
escalation_message = "Escalation message" | ||
message = "Watchdog monitor created from Terraform" | ||
|
||
query = "events(\"priority:all sources:watchdog tags:(story_type:service env:test_env service:testservice_aggregate)\").rollup(\"count\").by(\"service,resource_name\").last(\"30m\") > 0" | ||
query = "events(\"source:watchdog story_category:apm env:test_env\").rollup(\"count\").by(\"story_key,service,resource_name\").last(\"30m\") > 0" | ||
|
||
include_tags = true | ||
|
||
tags = ["foo:bar", "baz"] | ||
} | ||
tags = ["terraform:true"] | ||
} |