From 3c424ddc30506e0713f6bc7e10ca272328ebaa2a Mon Sep 17 00:00:00 2001 From: William P Date: Mon, 24 Nov 2025 11:46:13 -0500 Subject: [PATCH] argocd: fix prometheusrule --- system-apps/argocd/values.yaml | 39 +++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/system-apps/argocd/values.yaml b/system-apps/argocd/values.yaml index 0fd0c6c..29cc269 100644 --- a/system-apps/argocd/values.yaml +++ b/system-apps/argocd/values.yaml @@ -41,6 +41,33 @@ argo-cd: enabled: true serviceMonitor: enabled: true + rules: + enabled: true + spec: + - alert: ArgoAppMissing + expr: | + absent(argocd_app_info) == 1 + for: 15m + labels: + severity: critical + annotations: + summary: "[Argo CD] No reported applications" + description: > + Argo CD has not reported any applications data for the past 15 minutes which + means that it must be down or not functioning properly. This needs to be + resolved for this cloud to continue to maintain state. + - alert: ArgoAppNotSynced + expr: | + argocd_app_info{sync_status!="Synced"} == 1 + for: 12h + labels: + severity: warning + annotations: + summary: "[{{`{{$labels.name}}`}}] Application not synchronized" + description: > + The application [{{`{{$labels.name}}`}} has not been synchronized for over + 12 hours which means that the state of this cloud has drifted away from the + state inside Git. server: ingress: enabled: true @@ -52,8 +79,6 @@ argo-cd: enabled: true serviceMonitor: enabled: true - rules: - enabled: true repoServer: livenessProbe: enabled: true @@ -63,8 +88,6 @@ argo-cd: enabled: true serviceMonitor: enabled: true - rules: - enabled: true applicationSet: livenessProbe: enabled: true @@ -74,8 +97,6 @@ argo-cd: enabled: true serviceMonitor: enabled: true - rules: - enabled: true redis: livenessProbe: enabled: true @@ -85,8 +106,6 @@ argo-cd: enabled: true serviceMonitor: enabled: true - rules: - enabled: true dex: livenessProbe: enabled: true @@ -96,15 +115,11 @@ argo-cd: enabled: true serviceMonitor: enabled: true - rules: - enabled: true notifications: metrics: enabled: true serviceMonitor: enabled: true - rules: - enabled: true extraObjects: - apiVersion: external-secrets.io/v1 kind: ExternalSecret