MON-191 make the elasticsearch status aggregator hardcoded
This commit is contained in:
parent
3081af1aad
commit
60b51adaea
Binary file not shown.
@ -38,12 +38,6 @@ variable "es_cluster_status_message" {
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "es_cluster_status_time_aggregator" {
|
||||
description = "Monitor aggregator for ES cluster status [available values: min, max or avg]"
|
||||
type = "string"
|
||||
default = "max"
|
||||
}
|
||||
|
||||
variable "es_cluster_status_timeframe" {
|
||||
description = "Monitor timeframe for ES cluster status [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]"
|
||||
type = "string"
|
||||
|
||||
@ -18,7 +18,7 @@ resource "datadog_monitor" "es_cluster_status" {
|
||||
type = "metric alert"
|
||||
|
||||
query = <<EOF
|
||||
${var.es_cluster_status_time_aggregator}(${var.es_cluster_status_timeframe}): (
|
||||
max(${var.es_cluster_status_timeframe}): (
|
||||
avg:aws.es.cluster_statusred{${data.template_file.filter.rendered}} by {region,name} * 2 +
|
||||
(avg:aws.es.cluster_statusyellow{${data.template_file.filter.rendered}} by {region,name} + 0.1)
|
||||
) >= 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user