Enable ArgoCD metrics for Prometheus/Grafana monitoring

This commit is contained in:
dvirlabs 2026-04-19 06:40:25 +03:00
parent d64a83f6e0
commit 879b79cf2c

View File

@ -61,6 +61,12 @@ server:
- argocd.dvirlabs.com
service:
type: ClusterIP
metrics:
enabled: true
serviceMonitor:
enabled: true
interval: 30s
namespace: observability-stack
controller:
replicas: 2
@ -70,6 +76,40 @@ controller:
requests:
cpu: 200m
memory: 1Gi
metrics:
enabled: true
serviceMonitor:
enabled: true
interval: 30s
namespace: observability-stack
rules:
enabled: true
namespace: observability-stack
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.
repoServer:
resources:
@ -78,4 +118,26 @@ repoServer:
requests:
cpu: 100m
memory: 256Mi
metrics:
enabled: true
serviceMonitor:
enabled: true
interval: 30s
namespace: observability-stack
applicationSet:
metrics:
enabled: true
serviceMonitor:
enabled: true
interval: 30s
namespace: observability-stack
notifications:
metrics:
enabled: true
serviceMonitor:
enabled: true
interval: 30s
namespace: observability-stack