MON-134 make the memory message specific only and mandatory

This commit is contained in:
Quentin Manfroi 2018-03-22 23:36:14 +01:00
parent 999019339c
commit ab604c328d
3 changed files with 3 additions and 4 deletions

View File

@ -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 |

View File

@ -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" {

View File

@ -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): (