Files
auricom-home-cluster/cluster/core/flux-system/monitoring/gitopstoolkit.yaml
2021-07-28 02:40:10 +02:00

21 lines
712 B
YAML

---
kind: PrometheusRule
apiVersion: monitoring.coreos.com/v1
metadata:
labels:
prometheus: k8s
role: alert-rules
name: gitopstoolkit
namespace: flux-system
spec:
groups:
- name: GitOpsToolkit
rules:
- alert: ReconciliationFailure
expr: max(gotk_reconcile_condition{status="False",type="Ready"}) by (namespace, name, kind) + on(namespace, name, kind) (max(gotk_reconcile_condition{status="Deleted"}) by (namespace, name, kind)) * 2 == 1
for: 30m
labels:
severity: page
annotations:
summary: "{{ $labels.kind }} {{ $labels.namespace }}/{{ $labels.name }} reconciliation has been failing for more than ten minutes."