mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-23 09:58:16 +08:00
Publish
This commit is contained in:
parent
79f45a5146
commit
fd9da90c1d
1 changed files with 41 additions and 0 deletions
41
dist/rules/fluxcd/embedded-exporter.yml
vendored
Normal file
41
dist/rules/fluxcd/embedded-exporter.yml
vendored
Normal file
|
|
@ -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 }}"
|
||||||
Loading…
Reference in a new issue