Skip to content

Commit 2aee2d9

Browse files
ArthurSensroboquat
authored andcommitted
Add dashboard URL button to argocd alerts
Signed-off-by: ArthurSens <[email protected]>
1 parent 1117ef4 commit 2aee2d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: operations/observability/mixins/self-hosted/rules/argocd/prometheusRules.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ spec:
2121
annotations:
2222
description: App {{ $labels.name }} in {{ $labels.label_environment }} is stuck in `Unknown` for 1h. ArgoCD is probably generating errors when trying to compare live and desired manifests.
2323
summary: App {{ $labels.name }} is stuck in `Unknown` state.
24+
dashboard_url: https://grafana.gitpod.io/d/argocd-apps/argocd?refresh=30s&var-environment={{ $labels.label_environment }}&var-team={{ $labels.team }}
2425
expr: label_replace(argocd_app_info{sync_status="Unknown"} * on(name) group_left(label_environment, label_team) argocd_app_labels, "team", "$1", "label_team", "(.*)")
2526
labels:
2627
severity: warning
@@ -29,6 +30,7 @@ spec:
2930
annotations:
3031
description: App {{ $labels.name }} in {{ $labels.label_environment }} is `OutOfSync` for more than an entire day. The live manifests do not match with what is desired in git!
3132
summary: App {{ $labels.name }} is stuck in `OutOfSync` state.
33+
dashboard_url: https://grafana.gitpod.io/d/argocd-apps/argocd?refresh=30s&var-environment={{ $labels.label_environment }}&var-team={{ $labels.team }}
3234
expr: label_replace(argocd_app_info{sync_status="OutOfSync"} * on(name) group_left(label_environment, label_team) argocd_app_labels, "team", "$1", "label_team", "(.*)")
3335
labels:
3436
severity: warning
@@ -37,6 +39,7 @@ spec:
3739
annotations:
3840
description: App {{ $labels.name }} in {{ $labels.label_environment }} is stuck in `Progressing` for 1h. It is possible that the application is left in a weird state.
3941
summary: App {{ $labels.name }} is stuck in `Progressing` state.
42+
dashboard_url: https://grafana.gitpod.io/d/argocd-apps/argocd?refresh=30s&var-environment={{ $labels.label_environment }}&var-team={{ $labels.team }}
4043
expr: label_replace(argocd_app_info{health_status="Progressing"} * on(name) group_left(label_environment, label_team) argocd_app_labels, "team", "$1", "label_team", "(.*)")
4144
labels:
4245
severity: warning
@@ -45,6 +48,7 @@ spec:
4548
annotations:
4649
description: App {{ $labels.name }} in {{ $labels.label_environment }} is stuck in `Degraded`. This means that the synchronization failed requires investigation.
4750
summary: App {{ $labels.name }} is stuck in `Degraded` state.
51+
dashboard_url: https://grafana.gitpod.io/d/argocd-apps/argocd?refresh=30s&var-environment={{ $labels.label_environment }}&var-team={{ $labels.team }}
4852
expr: label_replace(argocd_app_info{health_status="Degraded"} * on(name) group_left(label_environment, label_team) argocd_app_labels, "team", "$1", "label_team", "(.*)")
4953
labels:
5054
severity: warning

0 commit comments

Comments
 (0)