Skip to content

Commit 3b14ec8

Browse files
committed
feat: update prometheus rule to be more flexible
1 parent 3c8af2a commit 3b14ec8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: charts/argocd/values.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,17 @@ argo-cd:
3232
The application [{{`{{$labels.name}}`}} has not been synchronized for over
3333
12 hours which means that the state of this cloud has drifted away from the
3434
state inside Git.
35+
- alert: ArgoCDSync
36+
expr: label_replace(argocd_app_info{sync_status!="Synced"}, "namespace", "$1", "dest_namespace", "(.*)") > 0
37+
for: 60m
38+
labels:
39+
severity: warning
40+
annotations:
41+
summary: The ArgoCD application is not syncronized.
42+
description: |
43+
{{ "Sync status: {{ $labels.sync_status }}" }}
44+
{{ "Health status: {{ $labels.health_status }}" }}
45+
{{ "Namespace: {{ $labels.dest_namespace }}" }}
46+
{{ "Application: {{ $labels.name }}" }}
47+
{{ "Project: {{ $labels.project }}" }}
48+
{{ "Repository: {{ $labels.repo }}" }}

0 commit comments

Comments
 (0)