From 0700bf3dafd714d856dc1393feda6eeb5e71ddf9 Mon Sep 17 00:00:00 2001 From: Zadkiel Aharonian Date: Fri, 4 Aug 2023 13:48:56 +0000 Subject: [PATCH] fix: reduce interval to 15s Signed-off-by: GitHub --- buffer-size.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer-size.sh b/buffer-size.sh index e43ab5f..1fb92b6 100644 --- a/buffer-size.sh +++ b/buffer-size.sh @@ -20,5 +20,5 @@ while true; do echo -e "$(find "${BUFFER_PATH}" -type f 2>/dev/null | wc -l)\t${BUFFER_PATH}" | sed -ne 's/\\/\\\\/;s/"/\\"/g;s/^\([0-9]\+\)\t\(.*\)$/logging_buffer_files{entity="\2", host="'$(hostname)'"} \1/p' >> /prometheus/node_exporter/textfile_collector/logging_buffer_files.prom.$$ mv /prometheus/node_exporter/textfile_collector/logging_buffer_files.prom.$$ /prometheus/node_exporter/textfile_collector/logging_buffer_files.prom - sleep 30 + sleep 15 done