MON-403 fix perpetual diff on apache connect monitor

This commit is contained in:
Quentin Manfroi 2019-02-27 15:16:11 +01:00
parent 01ffc91611
commit 886de38eff
3 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@ Creates DataDog monitors with the following checks:
| apache\_connect\_extra\_tags | Extra tags for Apache process monitor | list | `[]` | no | | apache\_connect\_extra\_tags | Extra tags for Apache process monitor | list | `[]` | no |
| apache\_connect\_message | Custom message for Apache status monitor | string | `""` | no | | apache\_connect\_message | Custom message for Apache status monitor | string | `""` | no |
| apache\_connect\_silenced | Groups to mute for Apache status monitor | map | `{}` | no | | apache\_connect\_silenced | Groups to mute for Apache status monitor | map | `{}` | no |
| apache\_connect\_threshold\_critical | Apache status monitor (critical threshold) | string | `"1.1754943508222875e-38"` | no | | apache\_connect\_threshold\_warning | Apache status monitor (warning threshold) | string | `"3"` | no |
| environment | Architecture Environment | string | n/a | yes | | environment | Architecture Environment | string | n/a | yes |
| evaluation\_delay | Delay in seconds for the metric evaluation | string | `"15"` | no | | evaluation\_delay | Delay in seconds for the metric evaluation | string | `"15"` | no |
| filter\_tags\_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `"*"` | no | | filter\_tags\_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `"*"` | no |

View File

@ -60,8 +60,8 @@ variable "apache_connect_message" {
default = "" default = ""
} }
variable "apache_connect_threshold_critical" { variable "apache_connect_threshold_warning" {
description = "Apache status monitor (critical threshold)" description = "Apache status monitor (warning threshold)"
type = "string" type = "string"
default = "1.1754943508222875e-38" default = 3
} }

View File

@ -6,12 +6,12 @@ resource "datadog_monitor" "datadog_apache_process" {
type = "service check" type = "service check"
query = <<EOF query = <<EOF
"apache.can_connect"${module.filter-tags.service_check}.by("host","port","server").last(1).pct_by_status() "apache.can_connect"${module.filter-tags.service_check}.by("port","server").last(6).count_by_status()
EOF EOF
thresholds = { thresholds = {
warning = 0 warning = "${var.apache_connect_threshold_warning}"
critical = "${var.apache_connect_threshold_critical}" critical = 5
} }
notify_no_data = true notify_no_data = true