From fd9da90c1d51f6c8fe4f9aaeb6225afb3e2879ee Mon Sep 17 00:00:00 2001 From: samber Date: Sat, 3 May 2025 20:52:49 +0000 Subject: [PATCH] Publish --- dist/rules/fluxcd/embedded-exporter.yml | 41 +++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 dist/rules/fluxcd/embedded-exporter.yml diff --git a/dist/rules/fluxcd/embedded-exporter.yml b/dist/rules/fluxcd/embedded-exporter.yml new file mode 100644 index 0000000..5617faa --- /dev/null +++ b/dist/rules/fluxcd/embedded-exporter.yml @@ -0,0 +1,41 @@ +groups: + +- name: EmbeddedExporter + + rules: + + - alert: FluxKustomizationFailure + expr: 'gotk_resource_info{ready="False", customresource_kind="Kustomization"} > 0' + for: 15m + labels: + severity: warning + annotations: + summary: Flux Kustomization Failure (instance {{ $labels.instance }}) + description: "The {{ $labels.customresource_kind }} '{{ $labels.name }}' in namespace {{ $labels.exported_namespace }} is marked as not ready.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" + + - alert: FluxHelmreleaseFailure + expr: 'gotk_resource_info{ready="False", customresource_kind="HelmRelease"} > 0' + for: 15m + labels: + severity: warning + annotations: + summary: Flux HelmRelease Failure (instance {{ $labels.instance }}) + description: "The {{ $labels.customresource_kind }} '{{ $labels.name }}' in namespace {{ $labels.exported_namespace }} is marked as not ready.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" + + - alert: FluxSourceIssue + expr: 'gotk_resource_info{ready="False", customresource_kind=~"GitRepository|HelmRepository|Bucket|OCIRepository"} > 0' + for: 15m + labels: + severity: warning + annotations: + summary: Flux Source Issue (instance {{ $labels.instance }}) + description: "Flux source {{ $labels.customresource_kind }} '{{ $labels.name }}' has issue(s).\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" + + - alert: FluxImageIssue + expr: 'gotk_resource_info{ready="False", customresource_kind=~"ImagePolicy|ImageRepository|ImageUpdateAutomation"} > 0' + for: 15m + labels: + severity: warning + annotations: + summary: Flux Image Issue (instance {{ $labels.instance }}) + description: "The {{ $labels.customresource_kind }} '{{ $labels.name }}' is marked as not ready.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"