MON-32 add cachenodeid to group by
This commit is contained in:
parent
5357ef68e0
commit
329097c626
@ -7,7 +7,7 @@ resource "datadog_monitor" "elasticache_eviction" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
sum(${var.eviction_timeframe}): (
|
sum(${var.eviction_timeframe}): (
|
||||||
avg:aws.elasticache.evictions${module.filter-tags.query_alert} by {region,cacheclusterid}
|
avg:aws.elasticache.evictions${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}
|
||||||
) > ${var.eviction_threshold_critical}
|
) > ${var.eviction_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ resource "datadog_monitor" "elasticache_max_connection" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
${var.max_connection_time_aggregator}(${var.max_connection_timeframe}): (
|
${var.max_connection_time_aggregator}(${var.max_connection_timeframe}): (
|
||||||
avg:aws.elasticache.curr_connections${module.filter-tags.query_alert} by {region,cacheclusterid}
|
avg:aws.elasticache.curr_connections${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}
|
||||||
) >= 65000
|
) >= 65000
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ resource "datadog_monitor" "elasticache_no_connection" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
${var.no_connection_time_aggregator}(${var.no_connection_timeframe}): (
|
${var.no_connection_time_aggregator}(${var.no_connection_timeframe}): (
|
||||||
avg:aws.elasticache.curr_connections${module.filter-tags.query_alert} by {region,cacheclusterid}
|
avg:aws.elasticache.curr_connections${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}
|
||||||
) <= 0
|
) <= 0
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ resource "datadog_monitor" "elasticache_swap" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
${var.swap_time_aggregator}(${var.swap_timeframe}): (
|
${var.swap_time_aggregator}(${var.swap_timeframe}): (
|
||||||
avg:aws.elasticache.swap_usage${module.filter-tags.query_alert} by {region,cacheclusterid}
|
avg:aws.elasticache.swap_usage${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}
|
||||||
) > ${var.swap_threshold_critical}
|
) > ${var.swap_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ resource "datadog_monitor" "elasticache_eviction_growing" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
pct_change(avg(${var.eviction_growing_timeframe}),${var.eviction_growing_condition_timeframe}):
|
pct_change(avg(${var.eviction_growing_timeframe}),${var.eviction_growing_condition_timeframe}):
|
||||||
avg:aws.elasticache.evictions${module.filter-tags.query_alert} by {region,cacheclusterid}
|
avg:aws.elasticache.evictions${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}
|
||||||
> ${var.eviction_growing_threshold_critical}
|
> ${var.eviction_growing_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
@ -7,9 +7,9 @@ resource "datadog_monitor" "memcached_get_hits" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
sum(${var.get_hits_timeframe}): (
|
sum(${var.get_hits_timeframe}): (
|
||||||
avg:aws.elasticache.get_hits${module.filter-tags.query_alert} by {region,cacheclusterid}.as_count() /
|
avg:aws.elasticache.get_hits${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}.as_count() /
|
||||||
(avg:aws.elasticache.get_hits${module.filter-tags.query_alert} by {region,cacheclusterid}.as_count() +
|
(avg:aws.elasticache.get_hits${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}.as_count() +
|
||||||
avg:aws.elasticache.get_misses${module.filter-tags.query_alert} by {region,cacheclusterid}.as_count())
|
avg:aws.elasticache.get_misses${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}.as_count())
|
||||||
) < ${var.get_hits_threshold_critical}
|
) < ${var.get_hits_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
@ -7,9 +7,9 @@ resource "datadog_monitor" "redis_cache_hits" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
sum(${var.cache_hits_timeframe}): (
|
sum(${var.cache_hits_timeframe}): (
|
||||||
avg:aws.elasticache.cache_hits${module.filter-tags.query_alert} by {region,cacheclusterid}.as_count() /
|
avg:aws.elasticache.cache_hits${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}.as_count() /
|
||||||
(avg:aws.elasticache.cache_hits${module.filter-tags.query_alert} by {region,cacheclusterid}.as_count() +
|
(avg:aws.elasticache.cache_hits${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}.as_count() +
|
||||||
avg:aws.elasticache.cache_misses${module.filter-tags.query_alert} by {region,cacheclusterid}.as_count())
|
avg:aws.elasticache.cache_misses${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}.as_count())
|
||||||
) * 100 < ${var.cache_hits_threshold_critical}
|
) * 100 < ${var.cache_hits_threshold_critical}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -103,8 +103,8 @@ resource "datadog_monitor" "redis_commands" {
|
|||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
sum(${var.commands_timeframe}): (
|
sum(${var.commands_timeframe}): (
|
||||||
avg:aws.elasticache.get_type_cmds${module.filter-tags.query_alert} by {region,cacheclusterid}.as_count() +
|
avg:aws.elasticache.get_type_cmds${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}.as_count() +
|
||||||
avg:aws.elasticache.set_type_cmds${module.filter-tags.query_alert} by {region,cacheclusterid}.as_count()
|
avg:aws.elasticache.set_type_cmds${module.filter-tags.query_alert} by {region,cacheclusterid,cachenodeid}.as_count()
|
||||||
) <= 0
|
) <= 0
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user