Skip to content

Commit

Permalink
fix service check query
Browse files Browse the repository at this point in the history
  • Loading branch information
lalo-galvan committed Jul 16, 2024
1 parent 68845bc commit 26e6c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/process/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resource "datadog_monitor" "process_check" {
require_full_window = true

query = <<EOQ
"process.up"${local.service_filter}.last(${sum([var.process_check_threshold_critical, 1])}).by(host).count_by_status()
"process.up"${local.service_filter}.by("host").last(${sum([var.process_check_threshold_critical, 1])}).count_by_status()
EOQ

monitor_thresholds {
Expand Down

0 comments on commit 26e6c2b

Please sign in to comment.