MON-32 - Monitors updated with MON-275 requirements

This commit is contained in:
Alexandre Gaillet 2018-07-27 15:57:28 +02:00 committed by Quentin Manfroi
parent d620d436ba
commit 5d494fc69c
3 changed files with 48 additions and 0 deletions

View File

@ -10,6 +10,10 @@ resource "datadog_monitor" "elasticache_eviction" {
) > 0 ) > 0
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
notify_no_data = false notify_no_data = false
evaluation_delay = "${var.delay}" evaluation_delay = "${var.delay}"
renotify_interval = 0 renotify_interval = 0
@ -37,6 +41,10 @@ resource "datadog_monitor" "elasticache_max_connection" {
) >= 65000 ) >= 65000
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
notify_no_data = true notify_no_data = true
evaluation_delay = "${var.delay}" evaluation_delay = "${var.delay}"
renotify_interval = 0 renotify_interval = 0
@ -64,6 +72,10 @@ resource "datadog_monitor" "elasticache_no_connection" {
) <= 0 ) <= 0
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
notify_no_data = true notify_no_data = true
evaluation_delay = "${var.delay}" evaluation_delay = "${var.delay}"
renotify_interval = 0 renotify_interval = 0
@ -91,6 +103,10 @@ resource "datadog_monitor" "elasticache_swap" {
) > ${var.swap_threshold_critical} ) > ${var.swap_threshold_critical}
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
thresholds { thresholds {
warning = "${var.swap_threshold_warning}" warning = "${var.swap_threshold_warning}"
critical = "${var.swap_threshold_critical}" critical = "${var.swap_threshold_critical}"
@ -124,6 +140,10 @@ resource "datadog_monitor" "elasticache_free_memory" {
< ${var.free_memory_threshold_critical} < ${var.free_memory_threshold_critical}
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
thresholds { thresholds {
warning = "${var.free_memory_threshold_warning}" warning = "${var.free_memory_threshold_warning}"
critical = "${var.free_memory_threshold_critical}" critical = "${var.free_memory_threshold_critical}"
@ -156,6 +176,10 @@ resource "datadog_monitor" "elasticache_eviction_growing" {
> ${var.eviction_growing_threshold_critical} > ${var.eviction_growing_threshold_critical}
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
thresholds { thresholds {
warning = "${var.eviction_growing_threshold_warning}" warning = "${var.eviction_growing_threshold_warning}"
critical = "${var.eviction_growing_threshold_critical}" critical = "${var.eviction_growing_threshold_critical}"

View File

@ -67,6 +67,10 @@ resource "datadog_monitor" "memcached_get_hits" {
) < ${var.get_hits_threshold_critical} ) < ${var.get_hits_threshold_critical}
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
thresholds { thresholds {
warning = "${var.get_hits_threshold_warning}" warning = "${var.get_hits_threshold_warning}"
critical = "${var.get_hits_threshold_critical}" critical = "${var.get_hits_threshold_critical}"
@ -99,6 +103,10 @@ resource "datadog_monitor" "memcached_cpu_high" {
) > ${var.cpu_high_threshold_critical} ) > ${var.cpu_high_threshold_critical}
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
thresholds { thresholds {
warning = "${var.cpu_high_threshold_warning}" warning = "${var.cpu_high_threshold_warning}"
critical = "${var.cpu_high_threshold_critical}" critical = "${var.cpu_high_threshold_critical}"

View File

@ -67,6 +67,10 @@ resource "datadog_monitor" "redis_cache_hits" {
) * 100 < ${var.cache_hits_threshold_critical} ) * 100 < ${var.cache_hits_threshold_critical}
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
thresholds { thresholds {
warning = "${var.cache_hits_threshold_warning}" warning = "${var.cache_hits_threshold_warning}"
critical = "${var.cache_hits_threshold_critical}" critical = "${var.cache_hits_threshold_critical}"
@ -99,6 +103,10 @@ resource "datadog_monitor" "redis_cpu_high" {
) > ${var.cpu_high_threshold_critical} ) > ${var.cpu_high_threshold_critical}
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
notify_no_data = true notify_no_data = true
evaluation_delay = "${var.delay}" evaluation_delay = "${var.delay}"
renotify_interval = 0 renotify_interval = 0
@ -126,6 +134,10 @@ resource "datadog_monitor" "redis_replication_lag" {
) > ${var.replication_lag_threshold_critical} ) > ${var.replication_lag_threshold_critical}
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
thresholds { thresholds {
warning = "${var.replication_lag_threshold_warning}" warning = "${var.replication_lag_threshold_warning}"
critical = "${var.replication_lag_threshold_critical}" critical = "${var.replication_lag_threshold_critical}"
@ -159,6 +171,10 @@ resource "datadog_monitor" "redis_commands" {
) <= 0 ) <= 0
EOF EOF
lifecycle {
ignore_changes = ["type"]
}
notify_no_data = true notify_no_data = true
evaluation_delay = "${var.delay}" evaluation_delay = "${var.delay}"
renotify_interval = 0 renotify_interval = 0