Skip to content

Commit

Permalink
fix elastic disk check
Browse files Browse the repository at this point in the history
  • Loading branch information
kmackowick committed Sep 26, 2024
1 parent cd3c36e commit 96642b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws/elasticsearch/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ resource "datadog_monitor" "free_storage" {
timeout_h = var.timeout_h

query = <<EOQ
max(${var.free_storage_evaluation_window}): ((
max(${var.free_storage_evaluation_window}): (
avg:aws.es.cluster_used_space.average${local.query_filter} by {name,region,aws_account,env} /
avg:aws.es.free_storage_space${local.query_filter} by {name,region,aws_account,env} +
avg:aws.es.cluster_used_space.average${local.query_filter} by {name,region,aws_account,env})) * 100)
( avg:aws.es.free_storage_space${local.query_filter} by {name,region,aws_account,env} +
avg:aws.es.cluster_used_space.average${local.query_filter} by {name,region,aws_account,env})) * 100
> ${var.free_storage_threshold_critical}
EOQ

Expand Down

0 comments on commit 96642b7

Please sign in to comment.