Difference between revisions of "Terraform resource: datadog monitor"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
* https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor
+
<code>datadog_monitor</code> [https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor doc]
  
 +
[[no_data_timeframe]]
 +
 +
== Example ==
 
  resource "datadog_monitor" "foo" {
 
  resource "datadog_monitor" "foo" {
 
   name              = "Name for monitor foo"
 
   name              = "Name for monitor foo"

Revision as of 14:10, 1 August 2024

datadog_monitor doc

no_data_timeframe

Example

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"]
}

Related

See also

Advertising: