Skip to content

Commit

Permalink
changed the alert expr for arogcd-app which are unhealthy and outofsync
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish1099 committed Aug 18, 2024
1 parent f1e1a7d commit 730161c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/kube-prometheus/mixins/argo-cd/mixin.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@
// Inspiration from here https://github.com/adinhodovic/argo-cd-mixin/blob/main/alerts/alerts.libsonnet
{
alert: 'ArgoCdAppOutOfSync',
expr: 'sum by (job, dest_server, project, sync_status) (argocd_app_info{job=~".*",sync_status!="Synced"}) >= 1',
expr: 'count by (project, sync_status) ((sum by (name, job, dest_server, project, sync_status) (argocd_app_info{job=~".*",sync_status!="Synced"}) >= 1) + on (name) group_left kubeaidManagedApps)',
labels: {
severity: 'warning',
},
'for': '15m',
'for': '2h',
annotations: {
summary: 'ArgoCD Application is Out Of Sync.',
description: 'Multiple application under {{ .Labels.project }} is out of sync with the sync status {{ .Labels.sync_status }} for the past 15m',
},
},
{
alert: 'ArgoCdAppUnhealthy',
expr: 'sum by (job, project, dest_server, health_status) (argocd_app_info{health_status!~"Healthy|Progressing"}) >= 1',
expr: 'count by (health_status,project) ((sum by (name, job, dest_server, project, health_status) (argocd_app_info{health_status!~"Healthy|Progressing"}) >= 1) + on (name) group_left kubeaidManagedApps)',
labels: {
severity: 'warning',
},
'for': '15m',
'for': '2h',
annotations: {
summary: 'ArgoCD Application is not healthy.',
description: 'Multiple application under {{ .Labels.project }} is not healthy with the health status {{ .Labels.health_status }} for the past 15m',
Expand Down

0 comments on commit 730161c

Please sign in to comment.