Skip to content
Snippets Groups Projects
Verified Commit dcf521d1 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(flux-system): Add alert for failing reconsiliations

This patch adds an alert for failing flux reconsiliations that should
prevent failing flux deployments from staying unnoticed.
parent b3002ef6
Branches
Tags
No related merge requests found
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: flux-system-alerts
spec:
groups:
- name: GitOpsToolkit
rules:
- alert: ReconciliationFailure
expr: max(gotk_reconcile_condition{status="False",type="Ready"}) by (exported_namespace, name, kind) + on(exported_namespace, name, kind) (max(gotk_reconcile_condition{status="Deleted"}) by (exported_namespace, name, kind)) * 2 == 1
for: 10m
labels:
severity: critical
annotations:
summary: '{{ $labels.kind }} {{ $labels.exported_namespace }}/{{ $labels.name }} reconciliation has been failing for more than ten minutes.'
...@@ -3,6 +3,7 @@ kind: Kustomization ...@@ -3,6 +3,7 @@ kind: Kustomization
namespace: flux-system namespace: flux-system
resources: resources:
- monitoring.yaml - monitoring.yaml
- alerts.yaml
- ../../shared/networkpolicies/allow-from-monitoring.yaml - ../../shared/networkpolicies/allow-from-monitoring.yaml
patchesStrategicMerge: patchesStrategicMerge:
- networkpolicy.yaml - networkpolicy.yaml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment