diff --git a/src/prometheus_alert_rules/smart.yaml b/src/prometheus_alert_rules/smart.yaml index b067fad..d4a31df 100644 --- a/src/prometheus_alert_rules/smart.yaml +++ b/src/prometheus_alert_rules/smart.yaml @@ -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 @@ -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 }} \ No newline at end of file + LABELS = {{ $labels }}