From 701139c608d59b11505d7724e2f3344966d4eb22 Mon Sep 17 00:00:00 2001 From: Thomas Schneider <tschneider@asta.rwth-aachen.de> Date: Sat, 29 Jan 2022 01:46:21 +0100 Subject: [PATCH] node_exporter: Run needrestart only every 5 minutes --- node_exporter/tasks/needrestart.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/node_exporter/tasks/needrestart.yml b/node_exporter/tasks/needrestart.yml index 32688cb..8a3be68 100644 --- a/node_exporter/tasks/needrestart.yml +++ b/node_exporter/tasks/needrestart.yml @@ -40,6 +40,7 @@ cron_file: needrestart2prom user: root name: needrestart2prom + minute: '*/5' job: >- /usr/local/bin/needrestart2prom -outfile /var/lib/prometheus/node-exporter/needrestart.prom -- GitLab