diff --git a/middleware/php-fpm/monitors-fpm.tf b/middleware/php-fpm/monitors-fpm.tf index 5b1568b..1a9afb6 100644 --- a/middleware/php-fpm/monitors-fpm.tf +++ b/middleware/php-fpm/monitors-fpm.tf @@ -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" diff --git a/system/generic/monitors-system.tf b/system/generic/monitors-system.tf index 0a09ffd..c0fdf25 100644 --- a/system/generic/monitors-system.tf +++ b/system/generic/monitors-system.tf @@ -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 = <