--- 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."