From bb9f5e0b165895e748ca1e6d83c1b3404c7cef71 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 24 Sep 2021 12:56:42 +0200 Subject: also run new textcollector scripts after reboot --- roles/monitoring/prometheus/exporter/node/defaults/main.yml | 2 ++ .../exporter/node/templates/textfile-collector-scripts/apt.timer.j2 | 1 + .../templates/textfile-collector-scripts/deleted-libraries.timer.j2 | 1 + 3 files changed, 4 insertions(+) (limited to 'roles') diff --git a/roles/monitoring/prometheus/exporter/node/defaults/main.yml b/roles/monitoring/prometheus/exporter/node/defaults/main.yml index 4a9b40cd..2714a7fe 100644 --- a/roles/monitoring/prometheus/exporter/node/defaults/main.yml +++ b/roles/monitoring/prometheus/exporter/node/defaults/main.yml @@ -7,6 +7,8 @@ _prometheus_exporter_node_time_collector_map_: prometheus_exporter_node_timesync_collector: "{{ _prometheus_exporter_node_time_collector_map_[ntp_variant | default('')] }}" +## TODO: systemd state collector??? + prometheus_exporter_node_disable_collectors: [] prometheus_exporter_node_extra_collectors: - "{{ prometheus_exporter_node_timesync_collector }}" diff --git a/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/apt.timer.j2 b/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/apt.timer.j2 index 5e7d3062..b8a9c34e 100644 --- a/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/apt.timer.j2 +++ b/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/apt.timer.j2 @@ -2,6 +2,7 @@ Description=Promethues node exporter textfile collector apt [Timer] +OnBootSec=50s OnCalendar=*-*-* *:1/30:17 AccuracySec=10s diff --git a/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/deleted-libraries.timer.j2 b/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/deleted-libraries.timer.j2 index 8f38050a..1646ac73 100644 --- a/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/deleted-libraries.timer.j2 +++ b/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/deleted-libraries.timer.j2 @@ -2,6 +2,7 @@ Description=Promethues node exporter textfile collector deleted-libraries [Timer] +OnBootSec=60s OnCalendar=*-*-* *:2/30:22 AccuracySec=10s -- cgit v1.2.3