MON-290 update php busy worker monitor

This commit is contained in:
Quentin Manfroi 2018-08-21 09:44:51 +02:00
parent 9d42d53494
commit ac49d3f894
2 changed files with 7 additions and 7 deletions

View File

@ -69,12 +69,12 @@ variable "php_fpm_busy_timeframe" {
variable "php_fpm_busy_threshold_warning" { variable "php_fpm_busy_threshold_warning" {
description = "php fpm busy warning threshold" description = "php fpm busy warning threshold"
default = 0.8 default = 80
} }
variable "php_fpm_busy_threshold_critical" { variable "php_fpm_busy_threshold_critical" {
description = "php fpm busy critical threshold" description = "php fpm busy critical threshold"
default = 0.9 default = 90
} }
variable "php_fpm_connect_silenced" { variable "php_fpm_connect_silenced" {

View File

@ -7,10 +7,10 @@ resource "datadog_monitor" "datadog_php_fpm_connect_idle" {
query = <<EOF query = <<EOF
${var.php_fpm_busy_time_aggregator}(${var.php_fpm_busy_timeframe}): ( ${var.php_fpm_busy_time_aggregator}(${var.php_fpm_busy_timeframe}): (
avg:php_fpm.processes.active${module.filter-tags.query_alert} by {region, host} / avg:php_fpm.processes.active${module.filter-tags.query_alert} by {region, host, pool} /
( avg:php_fpm.processes.idle${module.filter-tags.query_alert} by {region, host} + ( avg:php_fpm.processes.idle${module.filter-tags.query_alert} by {region, host, pool} +
avg:php_fpm.processes.active${module.filter-tags.query_alert} by {region, host} ) avg:php_fpm.processes.active${module.filter-tags.query_alert} by {region, host, pool} )
) > ${var.php_fpm_busy_threshold_critical} ) * 100 > ${var.php_fpm_busy_threshold_critical}
EOF EOF
thresholds { thresholds {
@ -18,7 +18,7 @@ resource "datadog_monitor" "datadog_php_fpm_connect_idle" {
critical = "${var.php_fpm_busy_threshold_critical}" critical = "${var.php_fpm_busy_threshold_critical}"
} }
notify_no_data = true notify_no_data = false
evaluation_delay = "${var.evaluation_delay}" evaluation_delay = "${var.evaluation_delay}"
new_host_delay = "${var.new_host_delay}" new_host_delay = "${var.new_host_delay}"
notify_audit = false notify_audit = false