summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-11-09 11:14:40 +0100
committerChristian Pointner <equinox@spreadspace.org>2021-11-09 11:14:40 +0100
commit31b8ee126ae339a382b681263e133354463da053 (patch)
treecf2d4b7e110a5229754e6c7218b1ab4a9a5cd18b /roles/monitoring/prometheus/server
parentadd rhythmbox plugins to ch-equinox-* (diff)
add alert for missing smartmon metrics
Diffstat (limited to 'roles/monitoring/prometheus/server')
-rw-r--r--roles/monitoring/prometheus/server/defaults/main/rules_node.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/monitoring/prometheus/server/defaults/main/rules_node.yml b/roles/monitoring/prometheus/server/defaults/main/rules_node.yml
index 6a77b105..0a28871d 100644
--- a/roles/monitoring/prometheus/server/defaults/main/rules_node.yml
+++ b/roles/monitoring/prometheus/server/defaults/main/rules_node.yml
@@ -281,6 +281,15 @@ prometheus_server_rules_node:
summary: Some processes still use a deleted library (instance {{ '{{' }} $labels.instance {{ '}}' }})
description: "The deleted library {{ '{{' }} $labels.library_name {{ '}}' }} on host {{ '{{' }} $labels.instance {{ '}}' }} is still in use by {{ '{{' }} $value {{ '}}' }} processes.\n VALUE = {{ '{{' }} $value {{ '}}' }}\n LABELS = {{ '{{' }} $labels {{ '}}' }}"
+ - alert: SmartmonMetricsMissing
+ expr: absent(smartmon_smartctl_run)
+ for: 30m
+ labels:
+ severity: warning
+ annotations:
+ summary: Metrics from smartctl are missing (instance {{ '{{' }} $labels.instance {{ '}}' }})
+ description: "smartctl on host {{ '{{' }} $labels.instance {{ '}}' }} stopped reporting metrics for device {{ '{{' }} $labels.device {{ '}}' }}.\n VALUE = {{ '{{' }} $value {{ '}}' }}\n LABELS = {{ '{{' }} $labels {{ '}}' }}"
+
- alert: SmartmonMetricsOutdated
expr: time() - smartmon_smartctl_run > 3600
for: 0m