Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Deezzir committed Dec 16, 2024
1 parent 593d164 commit f292486
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/prometheus_alert_rules/smart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ groups:
LABELS = {{ $labels }}
- alert: SmartHealthStatusFail
# We can check if the physical size of the drive is 0, meaning it's a logical device,
# and ignore the status 0, which is always returned for logical devices, like HW RAID,
# avoiding false positives.
expr: (smartctl_device_smart_status == 0) and on(device, juju_unit) (smartctl_device_block_size{blocks_type="physical"} != 0)
for: 2m
labels:
Expand Down

0 comments on commit f292486

Please sign in to comment.