kube/argocd/monitoring.yml
Lauri Võsandi 1045ed2f26
All checks were successful
continuous-integration/drone Build is passing
Migrate to Prometheus Operator
2022-09-11 16:38:16 +03:00

34 lines
752 B
YAML

---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: argocd
spec:
selector: {}
podMetricsEndpoints:
- port: metrics
- port: controller
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: argocd
spec:
groups:
- name: argocd
rules:
- alert: ArgoNotSynced
annotations:
summary: Some applications in Argo are out of sync
expr: sum by (dest_namespace) (argocd_app_info{sync_status!="Synced"}) > 0
for: 8h
labels:
severity: warning
- alert: ArgoNotHealthy
annotations:
summary: Some applications in Argo are not healthy
expr: argocd_app_info{health_status!="Healthy"}
for: 30m
labels:
severity: warning