Skip to content

Commit

Permalink
longhorn: fix rule?
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfantom committed Jan 31, 2025
1 parent 3f50ce5 commit 31bd851
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions base/longhorn-system/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: monitoring
spec:
groups:
- name: longhorn.rules
- name: longhorn-test.rules
rules:
- alert: LonghornVolumeTrimNeeded
annotations:
Expand All @@ -26,6 +26,8 @@ spec:
for: 2d
labels:
severity: warning
- name: longhorn.rules
rules:
- alert: LonghornVolumeActualSpaceUsedWarning
annotations:
description: The actual space used by Longhorn volume {{$labels.volume}} on {{$labels.node}} is at {{$value}}% capacity for more than 5 minutes.
Expand All @@ -52,7 +54,7 @@ spec:
severity: warning
- alert: LonghornVolumeOverprovisioned
annotations:
description: PVC {{$labels.persistentvolumeclaim}} in namespace {{$labels.namespace}} on node {{$labels.node}} is overprovisioned by a factor of {{$value | humanizePercent}}. Run fstrim if possible.
description: PVC {{$labels.persistentvolumeclaim}} in namespace {{$labels.namespace}} on node {{$labels.node}} is overprovisioned by a factor of {{$value | humanize}}. Run fstrim if possible.
summary: Longhorn volume overprovisioned
expr: |
sum by (persistentvolumeclaim, namespace, node) (kubelet_volume_stats_used_bytes)
Expand Down

0 comments on commit 31bd851

Please sign in to comment.