MON-139 - Updated remaining monitors name with new best practice

This commit is contained in:
Alexandre Gaillet 2018-03-20 17:37:58 +01:00
parent 192aed9333
commit 6ac7b7cf04
2 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ data "template_file" "filter" {
}
resource "datadog_monitor" "datadog_php_fpm_process_idle" {
name = "[${var.environment}] php_fpm busy worker {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] php_fpm busy worker {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${var.message}"
type = "metric alert"

View File

@ -7,7 +7,7 @@ data "template_file" "filter" {
}
resource "datadog_monitor" "datadog_cpu_too_high" {
name = "[${var.environment}] CPU usage {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] CPU usage {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${var.message}"
query = <<EOF
@ -37,7 +37,7 @@ resource "datadog_monitor" "datadog_cpu_too_high" {
}
resource "datadog_monitor" "datadog_free_disk_space_too_low" {
name = "[${var.environment}] Free disk space {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Free disk space {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${var.message}"
query = <<EOF
@ -68,7 +68,7 @@ resource "datadog_monitor" "datadog_free_disk_space_too_low" {
}
resource "datadog_monitor" "datadog_free_disk_space_inodes_too_low" {
name = "[${var.environment}] Free disk inodes {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Free disk inodes {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${var.message}"
query = <<EOF
@ -99,7 +99,7 @@ resource "datadog_monitor" "datadog_free_disk_space_inodes_too_low" {
}
resource "datadog_monitor" "datadog_free_memory" {
name = "[${var.environment}] Free memory {{comparator}} {{#is_alert}}{{threshold}}%{{/is_alert}}{{#is_warning}}{{warn_threshold}}%{{/is_warning}} ({{value}}%)"
name = "[${var.environment}] Free memory {{#is_alert}}{{comparator}}{{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{comparator}}{{warn_threshold}}% ({{value}}%){{/is_warning}}"
message = "${var.message}"
query = <<EOF