mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-30 23:45:25 +02:00
refactor: reorganize kustomizations
This commit is contained in:
20
cluster/core/flux-system/monitoring/gitopstoolkit.yaml
Normal file
20
cluster/core/flux-system/monitoring/gitopstoolkit.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
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."
|
Reference in New Issue
Block a user