diff --git a/cloud/azure/redis/monitors-azure-redis.tf b/cloud/azure/redis/monitors-azure-redis.tf index ca726f9..8c8dcf0 100644 --- a/cloud/azure/redis/monitors-azure-redis.tf +++ b/cloud/azure/redis/monitors-azure-redis.tf @@ -11,7 +11,7 @@ resource "datadog_monitor" "status" { message = "${coalesce(var.status_message, var.message)}" query = < ${var.evictedkeys_limit_threshold_critical} EOF @@ -68,8 +68,8 @@ resource "datadog_monitor" "percent_processor_time" { message = "${coalesce(var.percent_processor_time_message, var.message)}" query = < ${var.percent_processor_time_threshold_critical} EOF diff --git a/system/generic/README.md b/system/generic/README.md index ac23407..1401a7d 100644 --- a/system/generic/README.md +++ b/system/generic/README.md @@ -28,11 +28,13 @@ Inputs | Name | Description | Type | Default | Required | |------|-------------|:----:|:-----:|:-----:| +| cpu_high_aggregator | Monitor aggregator for CPU high [available values: min, max, sum or avg] | string | `min` | no | | cpu_high_message | Custom message for CPU high monitor | string | `` | no | | cpu_high_silenced | Groups to mute for CPU high monitor | map | `` | no | | cpu_high_threshold_critical | CPU high critical threshold | string | `95` | no | | cpu_high_threshold_warning | CPU high warning threshold | string | `80` | no | | cpu_high_timeframe | Monitor timeframe for CPU high [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | +| cpu_load_aggregator | Monitor aggregator for CPU load ratio [available values: min, max, sum or avg] | string | `min` | no | | cpu_load_message | Custom message for CPU load ratio monitor | string | `` | no | | cpu_load_silenced | Groups to mute for CPU load ratio monitor | map | `` | no | | cpu_load_threshold_critical | CPU load ratio critical threshold | string | `4` | no | @@ -42,16 +44,19 @@ Inputs | environment | Architecture Environment | string | - | yes | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no | +| free_disk_inodes_aggregator | Monitor aggregator for Free disk inodes [available values: min, max, sum or avg] | string | `min` | no | | free_disk_inodes_message | Custom message for Free disk inodes monitor | string | `` | no | | free_disk_inodes_silenced | Groups to mute for Free disk inodes monitor | map | `` | no | | free_disk_inodes_threshold_critical | Free disk space critical threshold | string | `5` | no | | free_disk_inodes_threshold_warning | Free disk space warning threshold | string | `10` | no | | free_disk_inodes_timeframe | Monitor timeframe for Free disk inodes [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | +| free_disk_space_aggregator | Monitor aggregator for Free diskspace [available values: min, max, sum or avg] | string | `min` | no | | free_disk_space_message | Custom message for Free diskspace monitor | string | `` | no | | free_disk_space_silenced | Groups to mute for Free diskspace monitor | map | `` | no | | free_disk_space_threshold_critical | Free disk space critical threshold | string | `5` | no | | free_disk_space_threshold_warning | Free disk space warning threshold | string | `10` | no | | free_disk_space_timeframe | Monitor timeframe for Free diskspace [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | +| free_memory_aggregator | Monitor aggregator for Free memory [available values: min, max, sum or avg] | string | `min` | no | | free_memory_message | Custom message for Free memory monitor | string | - | yes | | free_memory_silenced | Groups to mute for Free memory monitor | map | `` | no | | free_memory_threshold_critical | Free disk space critical threshold | string | `5` | no | diff --git a/system/generic/inputs.tf b/system/generic/inputs.tf index 6c66909..8765a36 100644 --- a/system/generic/inputs.tf +++ b/system/generic/inputs.tf @@ -38,6 +38,12 @@ variable "cpu_high_message" { default = "" } +variable "cpu_high_aggregator" { + description = "Monitor aggregator for CPU high [available values: min, max, sum or avg]" + type = "string" + default = "min" +} + variable "cpu_high_timeframe" { description = "Monitor timeframe for CPU high [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]" type = "string" @@ -66,6 +72,12 @@ variable "cpu_load_message" { default = "" } +variable "cpu_load_aggregator" { + description = "Monitor aggregator for CPU load ratio [available values: min, max, sum or avg]" + type = "string" + default = "min" +} + variable "cpu_load_timeframe" { description = "Monitor timeframe for CPU load ratio [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]" type = "string" @@ -94,6 +106,12 @@ variable "free_disk_space_message" { default = "" } +variable "free_disk_space_aggregator" { + description = "Monitor aggregator for Free diskspace [available values: min, max, sum or avg]" + type = "string" + default = "min" +} + variable "free_disk_space_timeframe" { description = "Monitor timeframe for Free diskspace [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]" type = "string" @@ -122,6 +140,12 @@ variable "free_disk_inodes_message" { default = "" } +variable "free_disk_inodes_aggregator" { + description = "Monitor aggregator for Free disk inodes [available values: min, max, sum or avg]" + type = "string" + default = "min" +} + variable "free_disk_inodes_timeframe" { description = "Monitor timeframe for Free disk inodes [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]" type = "string" @@ -149,6 +173,12 @@ variable "free_memory_message" { type = "string" } +variable "free_memory_aggregator" { + description = "Monitor aggregator for Free memory [available values: min, max, sum or avg]" + type = "string" + default = "min" +} + variable "free_memory_timeframe" { description = "Monitor timeframe for Free memory [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]" type = "string" diff --git a/system/generic/monitors-system.tf b/system/generic/monitors-system.tf index d737f01..a0e78bc 100644 --- a/system/generic/monitors-system.tf +++ b/system/generic/monitors-system.tf @@ -11,7 +11,7 @@ resource "datadog_monitor" "datadog_cpu_too_high" { message = "${coalesce(var.cpu_high_message, var.message)}" query = < ${var.cpu_high_threshold_critical} EOF @@ -42,9 +42,9 @@ resource "datadog_monitor" "datadog_load_too_high" { message = "${coalesce(var.cpu_load_message, var.message)}" query = < ${var.cpu_load_threshold_critical} EOF @@ -74,9 +74,9 @@ resource "datadog_monitor" "datadog_free_disk_space_too_low" { message = "${coalesce(var.free_disk_space_message, var.message)}" query = <