MON-287 add variable for cluster alert threshold
This commit is contained in:
parent
ad1de2322c
commit
b50cea0d4e
@ -22,8 +22,9 @@ Creates DataDog monitors with the following checks:
|
|||||||
|
|
||||||
| Name | Description | Type | Default | Required |
|
| Name | Description | Type | Default | Required |
|
||||||
|------|-------------|:----:|:-----:|:-----:|
|
|------|-------------|:----:|:-----:|:-----:|
|
||||||
| apache_connect_message | Custom message for Apache process monitor | string | `` | no |
|
| apache_connect_message | Custom message for Apache status monitor | string | `` | no |
|
||||||
| apache_connect_silenced | Groups to mute for Apache process monitor | map | `<map>` | no |
|
| apache_connect_silenced | Groups to mute for Apache status monitor | map | `<map>` | no |
|
||||||
|
| apache_connect_threshold_critical | Apache status monitor (critical threshold) | string | `1.1754943508222875e-38` | no |
|
||||||
| delay | Delay in seconds for the metric evaluation | string | `15` | no |
|
| delay | Delay in seconds for the metric evaluation | string | `15` | no |
|
||||||
| environment | Architecture Environment | string | - | yes |
|
| environment | Architecture Environment | string | - | yes |
|
||||||
| 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 |
|
||||||
|
|||||||
@ -27,13 +27,19 @@ variable "filter_tags_custom" {
|
|||||||
# Apache Middleware specific
|
# Apache Middleware specific
|
||||||
|
|
||||||
variable "apache_connect_silenced" {
|
variable "apache_connect_silenced" {
|
||||||
description = "Groups to mute for Apache process monitor"
|
description = "Groups to mute for Apache status monitor"
|
||||||
type = "map"
|
type = "map"
|
||||||
default = {}
|
default = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "apache_connect_message" {
|
variable "apache_connect_message" {
|
||||||
description = "Custom message for Apache process monitor"
|
description = "Custom message for Apache status monitor"
|
||||||
type = "string"
|
type = "string"
|
||||||
default = ""
|
default = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "apache_connect_threshold_critical" {
|
||||||
|
description = "Apache status monitor (critical threshold)"
|
||||||
|
type = "string"
|
||||||
|
default = 1.1754943508222875e-38
|
||||||
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ resource "datadog_monitor" "datadog_apache_process" {
|
|||||||
|
|
||||||
thresholds = {
|
thresholds = {
|
||||||
warning = 0
|
warning = 0
|
||||||
critical = 1.1754943508222875e-38
|
critical = "${var.apache_connect_threshold_critical}"
|
||||||
}
|
}
|
||||||
|
|
||||||
notify_no_data = true
|
notify_no_data = true
|
||||||
|
|||||||
@ -22,13 +22,14 @@ Creates DataDog monitors with the following checks:
|
|||||||
|
|
||||||
| Name | Description | Type | Default | Required |
|
| Name | Description | Type | Default | Required |
|
||||||
|------|-------------|:----:|:-----:|:-----:|
|
|------|-------------|:----:|:-----:|:-----:|
|
||||||
|
| apache_connect_threshold_critical | Nginx status monitor (critical threshold) | string | `1.1754943508222875e-38` | no |
|
||||||
| delay | Delay in seconds for the metric evaluation | string | `15` | no |
|
| delay | Delay in seconds for the metric evaluation | string | `15` | no |
|
||||||
| environment | Architecture Environment | string | - | yes |
|
| environment | Architecture Environment | string | - | yes |
|
||||||
| 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 |
|
||||||
| filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
|
| filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
|
||||||
| message | Message sent when an alert is triggered | string | - | yes |
|
| message | Message sent when an alert is triggered | string | - | yes |
|
||||||
| nginx_connect_message | Custom message for Nginx process monitor | string | `` | no |
|
| nginx_connect_message | Custom message for Nginx status monitor | string | `` | no |
|
||||||
| nginx_connect_silenced | Groups to mute for Nginx process monitor | map | `<map>` | no |
|
| nginx_connect_silenced | Groups to mute for Nginx status monitor | map | `<map>` | no |
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
|
|||||||
@ -27,13 +27,19 @@ variable "filter_tags_custom" {
|
|||||||
# Nginx Middleware specific
|
# Nginx Middleware specific
|
||||||
|
|
||||||
variable "nginx_connect_silenced" {
|
variable "nginx_connect_silenced" {
|
||||||
description = "Groups to mute for Nginx process monitor"
|
description = "Groups to mute for Nginx status monitor"
|
||||||
type = "map"
|
type = "map"
|
||||||
default = {}
|
default = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "nginx_connect_message" {
|
variable "nginx_connect_message" {
|
||||||
description = "Custom message for Nginx process monitor"
|
description = "Custom message for Nginx status monitor"
|
||||||
type = "string"
|
type = "string"
|
||||||
default = ""
|
default = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "apache_connect_threshold_critical" {
|
||||||
|
description = "Nginx status monitor (critical threshold)"
|
||||||
|
type = "string"
|
||||||
|
default = 1.1754943508222875e-38
|
||||||
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ resource "datadog_monitor" "datadog_nginx_process" {
|
|||||||
|
|
||||||
thresholds = {
|
thresholds = {
|
||||||
warning = 0
|
warning = 0
|
||||||
critical = 1.1754943508222875e-38
|
critical = "${var.nginx_connect_threshold_critical}"
|
||||||
}
|
}
|
||||||
|
|
||||||
notify_no_data = true
|
notify_no_data = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user