Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
obeleh committed Aug 19, 2022
1 parent e7c5d46 commit c6bffbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemonset-incomplete.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ module "daemonset_incomplete" {

name = "Daemonset Incomplete"
query = "min(${var.daemonset_incomplete_evaluation_period}):max:kubernetes_state.daemonset.scheduled{${local.daemonset_incomplete_filter}} by {kube_daemon_set,kube_cluster_name} - min:kubernetes_state.daemonset.ready{${local.daemonset_incomplete_filter}} by {kube_daemon_set,kube_cluster_name} > 0"
alert_message = "Kubernetes Daemonset {{daemonset}} is incomplete. Missing pod count:{{value}}"
recovery_message = "Kubernetes Daemonset {{daemonset}} has recovered"
alert_message = "Kubernetes Daemonset {{kube_daemon_set}} is incomplete. Missing pod count:{{value}}"
recovery_message = "Kubernetes Daemonset {{kube_daemon_set}} has recovered"

# monitor level vars
enabled = var.state_metrics_monitoring && var.daemonset_incomplete_enabled
Expand Down
2 changes: 2 additions & 0 deletions deploy-desired-vs-status.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module "deploy_desired_vs_status" {
query = "avg(${var.deploy_desired_vs_status_evaluation_period}):max:kubernetes_state.deployment.replicas_desired{${local.deploy_desired_vs_status_filter}} by {kube_cluster_name} - max:kubernetes_state.deployment.replicas_available{${local.deploy_desired_vs_status_filter}} by {kube_cluster_name} > ${var.deploy_desired_vs_status_critical}"
alert_message = "Kubernetes is having trouble getting all the pods to start. (Based on replicas number in all the deployments)"
recovery_message = "All pods described in deployments have started"
notify_no_data = true
no_data_message = "Kubernetes State data missing for {{kube_cluster_name.name}}"

# monitor level vars
enabled = var.state_metrics_monitoring && var.deploy_desired_vs_status_enabled
Expand Down

0 comments on commit c6bffbe

Please sign in to comment.