Skip to content

Commit 926bed0

Browse files
committed
update windows service query
1 parent 7bfee9d commit 926bed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

host/windows/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ resource "datadog_monitor" "windows_service" {
2525
require_full_window = true
2626

2727
query = <<EOQ
28-
service_check("windows_service.state")${local.service_filter}.last("${var.windows_service_alert_timeframe}") ${var.windows_service_alert_operator} ${var.windows_service_alert_threshold_critical}
28+
"windows_service.state"${local.service_filter}.by("host","windows_service").last(4).count_by_status()
2929
EOQ
3030

3131
monitor_thresholds {

0 commit comments

Comments
 (0)