1
0
forked from k-space/kube

Migrate to Prometheus Operator

This commit is contained in:
2022-09-11 16:24:35 +03:00
parent ee4b1ddf57
commit 1045ed2f26
30 changed files with 32403 additions and 129 deletions

33
argocd/monitoring.yml Normal file
View File

@@ -0,0 +1,33 @@
---
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