summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-10-15 22:52:47 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-10-15 22:52:47 +0200
commit8ceb96b6425c4256a0efcaf73529421a32f99998 (patch)
tree6e8eb96d8feb3f17dd329ffc1eecc41b5c19a020 /roles/monitoring/prometheus/exporter
parentprometheus: fix smartmon textfile collector (diff)
add some alerts for smartmon collector
Diffstat (limited to 'roles/monitoring/prometheus/exporter')
-rw-r--r--roles/monitoring/prometheus/exporter/node/files/smartmon2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/monitoring/prometheus/exporter/node/files/smartmon b/roles/monitoring/prometheus/exporter/node/files/smartmon
index 1c39b492..fd03e45f 100644
--- a/roles/monitoring/prometheus/exporter/node/files/smartmon
+++ b/roles/monitoring/prometheus/exporter/node/files/smartmon
@@ -326,7 +326,7 @@ def collect_ata_error_count(device):
def collect_disks_smart_metrics(wakeup_disks):
- now = int(datetime.datetime.utcnow().timestamp())
+ now = int(datetime.datetime.now().timestamp())
for device in find_devices():
yield Metric('smartctl_run', device.base_labels, now)