From 8741101b18e6459a2235e845d5e6e5c317b1a99c Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 14 Jan 2025 19:43:16 +0100 Subject: [PATCH] Improve el_configurator metrics help message --- kickstart_source_script/el_configurator.sh | 2 +- ks.rhel9.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kickstart_source_script/el_configurator.sh b/kickstart_source_script/el_configurator.sh index 0ef4b72..f373bfb 100644 --- a/kickstart_source_script/el_configurator.sh +++ b/kickstart_source_script/el_configurator.sh @@ -697,7 +697,7 @@ if grep "EL POST SCRIPT: SUCCESS" /etc/motd >/dev/null 2>&1; then else el_configurator_state=1 fi -echo -e "# HELP el_configurator_state current state of el_configurator run\n# TYPE el_configurator_state gauge\nel_configurator_state ${el_configurator_state}" >> /var/lib/node_exporter/textfile_collector/el_configurator.prom +echo -e "# HELP el_configurator_state current state of el_configurator run (0=OK)\n# TYPE el_configurator_state gauge\nel_configurator_state ${el_configurator_state}" >> /var/lib/node_exporter/textfile_collector/el_configurator.prom EOF [ $? -ne 0 ] && log "Failed to create /usr/local/bin/el_configurator_metrics.sh" "ERROR" chmod +x /usr/local/bin/el_configurator_metrics.sh || log "Failed to chmod /usr/local/bin/el_configurator_metrics.sh" "ERROR" diff --git a/ks.rhel9.cfg b/ks.rhel9.cfg index 61760cb..dc345d1 100644 --- a/ks.rhel9.cfg +++ b/ks.rhel9.cfg @@ -1660,7 +1660,7 @@ if grep "EL POST SCRIPT: SUCCESS" /etc/motd >/dev/null 2>&1; then else el_configurator_state=1 fi -echo -e "# HELP el_configurator_state current state of el_configurator run\n# TYPE el_configurator_state gauge\nel_configurator_state ${el_configurator_state}" >> /var/lib/node_exporter/textfile_collector/el_configurator.prom +echo -e "# HELP el_configurator_state current state of el_configurator run (0=OK)\n# TYPE el_configurator_state gauge\nel_configurator_state ${el_configurator_state}" >> /var/lib/node_exporter/textfile_collector/el_configurator.prom EOF [ $? -ne 0 ] && log "Failed to create /usr/local/bin/el_configurator_metrics.sh" "ERROR" chmod +x /usr/local/bin/el_configurator_metrics.sh || log "Failed to chmod /usr/local/bin/el_configurator_metrics.sh" "ERROR"