Skip to content

Commit

Permalink
feat: Allow autosync disable alert to ignore apps
Browse files Browse the repository at this point in the history
  • Loading branch information
adinhodovic committed Nov 6, 2023
1 parent 04ced20 commit 4c3be82
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion alerts/alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion prometheus_alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c3be82

Please sign in to comment.