inhib longhorn volumes space alerts

This commit is contained in:
auricom
2020-12-18 12:39:14 +01:00
parent cb662152ad
commit 4571813a7a

View File

@@ -28,16 +28,16 @@ spec:
groups: groups:
- name: longhorn.rules - name: longhorn.rules
rules: rules:
- alert: LonghornVolumeActualSpaceUsedWarning #- alert: LonghornVolumeActualSpaceUsedWarning
annotations: # annotations:
description: The actual space used by Longhorn volume {{$labels.volume}} on {{$labels.node}} is at {{$value}}% capacity for # description: The actual space used by Longhorn volume {{$labels.volume}} on {{$labels.node}} is at {{$value}}% capacity for
more than 5 minutes. # more than 5 minutes.
summary: The actual used space of Longhorn volume is over 90% of the capacity. # summary: The actual used space of Longhorn volume is over 90% of the capacity.
expr: (longhorn_volume_actual_size_bytes / longhorn_volume_capacity_bytes) * 100 > 90 # expr: (longhorn_volume_actual_size_bytes / longhorn_volume_capacity_bytes) * 100 > 90
for: 5m # for: 5m
labels: # labels:
issue: The actual used space of Longhorn volume {{$labels.volume}} on {{$labels.node}} is high. # issue: The actual used space of Longhorn volume {{$labels.volume}} on {{$labels.node}} is high.
severity: warning # severity: warning
- alert: LonghornVolumeStatusCritical - alert: LonghornVolumeStatusCritical
annotations: annotations:
description: Longhorn volume {{$labels.volume}} on {{$labels.node}} is Fault for description: Longhorn volume {{$labels.volume}} on {{$labels.node}} is Fault for