diff --git a/alerts/alerts.libsonnet b/alerts/alerts.libsonnet index bca42a9..ff22a6a 100644 --- a/alerts/alerts.libsonnet +++ b/alerts/alerts.libsonnet @@ -52,7 +52,8 @@ sum( argocd_app_info{ %(argoCdSelector)s, - autosync_enabled!="true" + autosync_enabled!="true", + name!~"%(argoAutoSyncDisabledIgnoredApps)s" } ) by (job, dest_server, project, name, autosync_enabled) > 0 diff --git a/config.libsonnet b/config.libsonnet index 85d6c11..f2d5764 100644 --- a/config.libsonnet +++ b/config.libsonnet @@ -22,6 +22,9 @@ local annotation = g.dashboard.annotation; argoCdAppSyncInterval: '10m', argoCdNotificationDeliveryInterval: '10m', + // List of applications to ignore in the auto sync disabled alert + argoAutoSyncDisabledIgnoredApps: '', + // Custom annotations to display in graphs annotation: { enabled: false, diff --git a/prometheus_alerts.yaml b/prometheus_alerts.yaml index b764039..d238bc9 100644 --- a/prometheus_alerts.yaml +++ b/prometheus_alerts.yaml @@ -42,7 +42,8 @@ sum( argocd_app_info{ job=~".*", - autosync_enabled!="true" + autosync_enabled!="true", + name!~"" } ) by (job, dest_server, project, name, autosync_enabled) > 0