From a82707455dc2547f6966109ae32a60ca3726eeeb Mon Sep 17 00:00:00 2001 From: Zadkiel Aharonian Date: Thu, 3 Aug 2023 15:00:42 +0000 Subject: [PATCH] feat: reduce refresh time to 30s Signed-off-by: Zadkiel Aharonian --- buffer-size.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer-size.sh b/buffer-size.sh index a42d33a..b9d778e 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_node_agent_buffer_files{entity="\2", host="'$(hostname)'"} \1/p' >> /prometheus/node_exporter/textfile_collector/logging_node_agent_buffer_files.prom.$$ mv /prometheus/node_exporter/textfile_collector/logging_node_agent_buffer_files.prom.$$ /prometheus/node_exporter/textfile_collector/logging_node_agent_buffer_files.prom - sleep 60 + sleep 30 done