Skip to content

Add dashboard URL button to argocd alerts #14208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
annotations:
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.
summary: App {{ $labels.name }} is stuck in `Unknown` state.
dashboard_url: https://grafana.gitpod.io/d/argocd-apps/argocd?refresh=30s&var-environment={{ $labels.label_environment }}&var-team={{ $labels.team }}
expr: label_replace(argocd_app_info{sync_status="Unknown"} * on(name) group_left(label_environment, label_team) argocd_app_labels, "team", "$1", "label_team", "(.*)")
labels:
severity: warning
Expand All @@ -29,6 +30,7 @@ spec:
annotations:
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!
summary: App {{ $labels.name }} is stuck in `OutOfSync` state.
dashboard_url: https://grafana.gitpod.io/d/argocd-apps/argocd?refresh=30s&var-environment={{ $labels.label_environment }}&var-team={{ $labels.team }}
expr: label_replace(argocd_app_info{sync_status="OutOfSync"} * on(name) group_left(label_environment, label_team) argocd_app_labels, "team", "$1", "label_team", "(.*)")
labels:
severity: warning
Expand All @@ -37,6 +39,7 @@ spec:
annotations:
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.
summary: App {{ $labels.name }} is stuck in `Progressing` state.
dashboard_url: https://grafana.gitpod.io/d/argocd-apps/argocd?refresh=30s&var-environment={{ $labels.label_environment }}&var-team={{ $labels.team }}
expr: label_replace(argocd_app_info{health_status="Progressing"} * on(name) group_left(label_environment, label_team) argocd_app_labels, "team", "$1", "label_team", "(.*)")
labels:
severity: warning
Expand All @@ -45,6 +48,7 @@ spec:
annotations:
description: App {{ $labels.name }} in {{ $labels.label_environment }} is stuck in `Degraded`. This means that the synchronization failed requires investigation.
summary: App {{ $labels.name }} is stuck in `Degraded` state.
dashboard_url: https://grafana.gitpod.io/d/argocd-apps/argocd?refresh=30s&var-environment={{ $labels.label_environment }}&var-team={{ $labels.team }}
expr: label_replace(argocd_app_info{health_status="Degraded"} * on(name) group_left(label_environment, label_team) argocd_app_labels, "team", "$1", "label_team", "(.*)")
labels:
severity: warning