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 60f7060 commit ca52254
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 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-test.rules
- name: longhorn.rules
rules:
- alert: LonghornVolumeTrimNeeded
annotations:
Expand All @@ -22,12 +22,10 @@ spec:
)
< 0.5
AND
(kubelet_volume_stats_capacity_bytes - kubelet_volume_stats_available_bytes) > 1024*1024*1024
(kubelet_volume_stats_capacity_bytes - kubelet_volume_stats_available_bytes) > 1024 * 1024 * 1024
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 Down

0 comments on commit ca52254

Please sign in to comment.