Skip to content

Commit

Permalink
Fix SmartAttributeWarning alert
Browse files Browse the repository at this point in the history
  • Loading branch information
Deezzir committed Dec 13, 2024
1 parent a86afe4 commit 2ec2541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prometheus_alert_rules/smart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ groups:
- alert: SmartAttributeWarning
# based on https://www.backblaze.com/blog/what-smart-stats-indicate-hard-drive-failures/
expr: smartctl_device_attribute{attribute_id=~"5|187|188|197|198"} > 0
expr: smartctl_device_attribute{attribute_id=~"5|187|188|197|198", attribute_value_type="raw"} > 0
for: 2m
labels:
severity: warning
Expand Down Expand Up @@ -124,4 +124,4 @@ groups:
The NVMe drive has reached 90% of its estimated lifetime.
Note: A value of 100 does not indicate failure. For more details, visit https://charmhub.io/hardware-observer/docs/metrics-and-alerts-smart
VALUE = {{ $value }}
LABELS = {{ $labels }}
LABELS = {{ $labels }}

0 comments on commit 2ec2541

Please sign in to comment.