Skip to content

Commit

Permalink
Improve el_configurator metrics help message
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Jan 14, 2025
1 parent 22db688 commit 8741101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kickstart_source_script/el_configurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ks.rhel9.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8741101

Please # to comment.