OpenShift GitOps: Using `argocd_app_sync_total` Metric fails to Notify Sync Failed Applications correctly
Issue
- Using
argocd_app_sync_total
Metric fails to Notify Sync Failed Applications correctly. -
Using
argocd_app_sync_total
Metric Alerts are firing continuously even when the Application is in Synced and Healthy State:apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: argocd-app-sync namespace: openshift-gitops spec: groups: - name: ArgoCD rules: - alert: ArgoAppSyncFailed annotations: summary: '''{{ $labels.name }}'' Application has sync phase as ''{{ $labels.phase }}''' expr: argocd_app_sync_total{phase!="Succeeded",dest_server="https://kubernetes.default.svc"} == 1 for: 1m labels: severity: warning
Environment
- Red Hat OpenShift Container Platform
- 4.14+
- Red Hat OpenShift GitOps
- 1.14+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.