MON-134 make the memory message specific only and mandatory
This commit is contained in:
parent
999019339c
commit
ab604c328d
@ -41,7 +41,7 @@ Inputs
|
||||
| free_disk_space_silenced | Groups to mute for Free diskspace monitor | map | `<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_memory_message | Custom message for Free memory monitor | string | `` | no |
|
||||
| free_memory_message | Custom message for Free memory monitor | string | - | yes |
|
||||
| free_memory_silenced | Groups to mute for Free memory monitor | map | `<map>` | no |
|
||||
| free_memory_threshold_critical | Free disk space critical threshold | string | `5` | no |
|
||||
| free_memory_threshold_warning | Free disk space warning threshold | string | `10` | no |
|
||||
|
||||
@ -106,7 +106,6 @@ variable "free_memory_silenced" {
|
||||
variable "free_memory_message" {
|
||||
description = "Custom message for Free memory monitor"
|
||||
type = "string"
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "free_memory_threshold_warning" {
|
||||
|
||||
@ -106,7 +106,7 @@ resource "datadog_monitor" "datadog_free_disk_space_inodes_too_low" {
|
||||
|
||||
resource "datadog_monitor" "datadog_free_memory" {
|
||||
name = "[${var.environment}] Free memory {{#is_alert}}{{comparator}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||
message = "${coalesce(var.free_memory_message, var.message)}"
|
||||
message = "${var.free_memory_message}"
|
||||
|
||||
query = <<EOF
|
||||
min(last_1m): (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user