Skip to content

Commit

Permalink
Create sanitech_continuous_monitoring.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH committed Apr 19, 2024
1 parent c286748 commit 7f63ba5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions func/sanitech_continuous_monitoring.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
resource "datadog_monitor" "cpu_high" {
name = "SaniTech CPU Usage High"
type = "query"
query = "avg(last_5m):system.cpu.system.pct{*} by {host} > 80"
message = "High CPU usage detected on host {{host}}"
notify_no_data = false
renotify_interval = 60
new_host_delay = 300
require_fresh_data = true

tags = [
"sanitech",
"environment:production",
]
}

0 comments on commit 7f63ba5

Please sign in to comment.