Skip to content
Snippets Groups Projects
Commit b0ceada0 authored by ale's avatar ale
Browse files

Add a prefix to the node-exporter scripts runcron jobs

parent 79d47a85
No related branches found
No related tags found
1 merge request!159Replace the node-exporter-scripts mechanics with individual cron jobs
......@@ -24,7 +24,7 @@ output_file="${output_dir}/${script_name}.prom"
tmp_file="${output_file}.$$"
trap "rm -f $tmp_file 2>/dev/null" EXIT INT TERM
runcron --no-metrics --splay 60 --name "$script_name" -- \
runcron --no-metrics --splay 60 --name "node-exporter-$script_name" -- \
"$script_path" > "$tmp_file"
if [ $? -gt 0 ]; then
rm -f "$tmp_file" 2>/dev/null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment