From ec0f7c1e525646777345029372c4e9fcc56a6940 Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Thu, 16 Aug 2018 10:59:10 +0200 Subject: [PATCH] MON-287 update service check monitors names --- middleware/apache/monitors-apache.tf | 2 +- middleware/nginx/monitors-nginx.tf | 2 +- middleware/php-fpm/monitors-fpm.tf | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/middleware/apache/monitors-apache.tf b/middleware/apache/monitors-apache.tf index e884448..7755dad 100644 --- a/middleware/apache/monitors-apache.tf +++ b/middleware/apache/monitors-apache.tf @@ -1,5 +1,5 @@ resource "datadog_monitor" "datadog_apache_process" { - name = "[${var.environment}] Can't connect to apache vhost status" + name = "[${var.environment}] Apache vhost status does not respond" message = "${coalesce(var.apache_connect_message, var.message)}" type = "service check" diff --git a/middleware/nginx/monitors-nginx.tf b/middleware/nginx/monitors-nginx.tf index 0861736..a601f15 100644 --- a/middleware/nginx/monitors-nginx.tf +++ b/middleware/nginx/monitors-nginx.tf @@ -1,5 +1,5 @@ resource "datadog_monitor" "datadog_nginx_process" { - name = "[${var.environment}] Can't connect to nginx vhost status" + name = "[${var.environment}] Nginx vhost status does not respond" message = "${coalesce(var.nginx_connect_message, var.message)}" type = "service check" diff --git a/middleware/php-fpm/monitors-fpm.tf b/middleware/php-fpm/monitors-fpm.tf index 1f57178..aaf3175 100644 --- a/middleware/php-fpm/monitors-fpm.tf +++ b/middleware/php-fpm/monitors-fpm.tf @@ -1,5 +1,5 @@ resource "datadog_monitor" "datadog_php_fpm_connect_idle" { - name = "[${var.environment}] php_fpm busy worker {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" + name = "[${var.environment}] Php-fpm busy worker {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" message = "${coalesce(var.php_fpm_busy_message, var.message)}" type = "metric alert" @@ -32,7 +32,7 @@ resource "datadog_monitor" "datadog_php_fpm_connect_idle" { } resource "datadog_monitor" "datadog_fpm_process" { - name = "[${var.environment}] Can't connect to php-fpm" + name = "[${var.environment}] Php-fpm ping url does not respond" message = "${coalesce(var.php_fpm_connect_message, var.message)}" type = "service check"