Merge branch 'Add_K8S_cluster_name_pod_monitors' into 'master'
MN-589 "Add_K8S cluster name pod monitors" See merge request claranet/projects/monitoring/datadog/terraform/monitors!183
This commit is contained in:
commit
06cea640c2
@ -76,4 +76,4 @@ Creates DataDog monitors with the following checks:
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* Datadog Agent > v6.6
|
* Datadog Agent > v7.2
|
||||||
|
|||||||
@ -6,7 +6,7 @@ resource "datadog_monitor" "pod_phase_status" {
|
|||||||
|
|
||||||
query = <<EOQ
|
query = <<EOQ
|
||||||
${var.pod_phase_status_time_aggregator}(${var.pod_phase_status_timeframe}):
|
${var.pod_phase_status_time_aggregator}(${var.pod_phase_status_timeframe}):
|
||||||
default(sum:kubernetes_state.pod.status_phase${module.filter-tags-phase.query_alert} by {namespace}, 0) > 0
|
default(sum:kubernetes_state.pod.status_phase${module.filter-tags-phase.query_alert} by {namespace,kube_cluster_name}, 0) > 0
|
||||||
EOQ
|
EOQ
|
||||||
|
|
||||||
thresholds = {
|
thresholds = {
|
||||||
@ -39,7 +39,7 @@ resource "datadog_monitor" "error" {
|
|||||||
|
|
||||||
query = <<EOQ
|
query = <<EOQ
|
||||||
${var.error_time_aggregator}(${var.error_timeframe}):
|
${var.error_time_aggregator}(${var.error_timeframe}):
|
||||||
sum:kubernetes_state.container.status_report.count.waiting${module.filter-tags-nocontainercreating.query_alert} by {namespace,pod,reason}
|
sum:kubernetes_state.container.status_report.count.waiting${module.filter-tags-nocontainercreating.query_alert} by {namespace,pod,reason,kube_cluster_name}
|
||||||
> ${var.error_threshold_critical}
|
> ${var.error_threshold_critical}
|
||||||
EOQ
|
EOQ
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ resource "datadog_monitor" "terminated" {
|
|||||||
|
|
||||||
query = <<EOQ
|
query = <<EOQ
|
||||||
${var.terminated_time_aggregator}(${var.terminated_timeframe}):
|
${var.terminated_time_aggregator}(${var.terminated_timeframe}):
|
||||||
sum:kubernetes_state.container.status_report.count.terminated${module.filter-tags-nocontainercreating.query_alert} by {namespace,pod,reason}
|
sum:kubernetes_state.container.status_report.count.terminated${module.filter-tags-nocontainercreating.query_alert} by {namespace,pod,reason,kube_cluster_name}
|
||||||
> ${var.terminated_threshold_critical}
|
> ${var.terminated_threshold_critical}
|
||||||
EOQ
|
EOQ
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user