Terraform resource: datadog monitor

From wikieduonline
Revision as of 16:08, 25 June 2024 by Welcome (talk | contribs)
Jump to navigation Jump to search


resource "datadog_monitor" "foo" {
 name               = "Name for monitor foo"
 type               = "metric alert"
 message            = "Monitor triggered. Notify: @hipchat-channel"
 escalation_message = "Escalation message @pagerduty"
 query = "avg(last_1h):avg:aws.ec2.cpu{environment:foo,host:foo} by {host} > 4"
 monitor_thresholds {
   warning  = 2
   critical = 4
 }
 include_tags = true
 tags = ["foo:bar", "team:fooBar"]
}

See also

Advertising: