diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-10-15 22:52:47 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-10-15 22:52:47 +0200 |
commit | 8ceb96b6425c4256a0efcaf73529421a32f99998 (patch) | |
tree | 6e8eb96d8feb3f17dd329ffc1eecc41b5c19a020 /roles/monitoring/prometheus/exporter | |
parent | prometheus: 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/smartmon | 2 |
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) |