Skip to content

Commit

Permalink
tweak sysdig health score alert
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-funk committed Oct 29, 2024
1 parent 278cc4a commit 3d42c67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions terraform/alerts_prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ resource "sysdig_monitor_alert_v2_prometheus" "nr_backend_prod_uptime_score" {
name = "Prod Backend Uptime Alert"
description = "Alert when the backend container has too much downtime"
severity = "high"
query = "sysdig_container_up{kube_cluster_name=\"silver\",kube_namespace_name=\"c1c7ed-prod\",kube_deployment_name=\"nr-compliance-enforcement-prod-backend\",container_name=\"nr-compliance-enforcement-prod-backend\"} < 0.7"
query = "sysdig_container_up{kube_cluster_name=\"silver\",kube_namespace_name=\"c1c7ed-prod\",kube_deployment_name=\"nr-compliance-enforcement-prod-backend\",container_name=\"nr-compliance-enforcement-prod-backend\"} < 0.5"
enabled = true
duration_seconds = 180
notification_channels {
Expand Down Expand Up @@ -132,7 +132,7 @@ resource "sysdig_monitor_alert_v2_prometheus" "nr_frontend_prod_uptime_score" {
name = "Prod Frontend Uptime Alert"
description = "Alert when the frontend container has too much downtime"
severity = "high"
query = "sysdig_container_up{kube_cluster_name=\"silver\",kube_namespace_name=\"c1c7ed-prod\",kube_deployment_name=\"nr-compliance-enforcement-prod-frontend\",container_name=\"nr-compliance-enforcement-prod-frontend\"} < 0.7"
query = "sysdig_container_up{kube_cluster_name=\"silver\",kube_namespace_name=\"c1c7ed-prod\",kube_deployment_name=\"nr-compliance-enforcement-prod-frontend\",container_name=\"nr-compliance-enforcement-prod-frontend\"} < 0.5"
enabled = true
duration_seconds = 180
notification_channels {
Expand Down
6 changes: 3 additions & 3 deletions terraform/alerts_test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ resource "sysdig_monitor_alert_v2_prometheus" "nr_backend_test_uptime_score" {
name = "Test Backend Uptime Alert"
description = "Alert when the backend container has too much downtime"
severity = "high"
query = "sysdig_container_up{kube_cluster_name=\"silver\",kube_namespace_name=\"c1c7ed-test\",kube_deployment_name=\"nr-compliance-enforcement-test-backend\",container_name=\"nr-compliance-enforcement-test-backend\"} < 0.7"
query = "sysdig_container_up{kube_cluster_name=\"silver\",kube_namespace_name=\"c1c7ed-test\",kube_deployment_name=\"nr-compliance-enforcement-test-backend\",container_name=\"nr-compliance-enforcement-test-backend\"} < 0.5"
enabled = true
duration_seconds = 180
notification_channels {
Expand Down Expand Up @@ -132,7 +132,7 @@ resource "sysdig_monitor_alert_v2_prometheus" "nr_frontend_test_uptime_score" {
name = "Test Frontend Uptime Alert"
description = "Alert when the frontend container has too much downtime"
severity = "high"
query = "sysdig_container_up{kube_cluster_name=\"silver\",kube_namespace_name=\"c1c7ed-test\",kube_deployment_name=\"nr-compliance-enforcement-test-frontend\",container_name=\"nr-compliance-enforcement-test-frontend\"} < 0.7"
query = "sysdig_container_up{kube_cluster_name=\"silver\",kube_namespace_name=\"c1c7ed-test\",kube_deployment_name=\"nr-compliance-enforcement-test-frontend\",container_name=\"nr-compliance-enforcement-test-frontend\"} < 0.5"
enabled = true
duration_seconds = 180
notification_channels {
Expand Down Expand Up @@ -229,7 +229,7 @@ resource "sysdig_monitor_alert_v2_prometheus" "nr_database_test_uptime_score" {
name = "Test Database Uptime Alert"
description = "Alert when the database container has too much downtime"
severity = "high"
query = "sysdig_container_up{kube_cluster_name=\"silver\",kube_namespace_name=\"c1c7ed-test\",kube_statefulset_name=\"nr-compliance-enforcement-test-bitnami-pg\"} < 0.7"
query = "sysdig_container_up{kube_cluster_name=\"silver\",kube_namespace_name=\"c1c7ed-test\",kube_statefulset_name=\"nr-compliance-enforcement-test-bitnami-pg\"} < 0.5"
enabled = true
duration_seconds = 180
notification_channels {
Expand Down

0 comments on commit 3d42c67

Please sign in to comment.