Used to create prometheus guages from any bash command. Most commands that return a single number/float should work. If elevated privileges are required, the process should probably be run as a unique user with limited sudo
access to only be able to run the desired commands
- create a config.yml in the same directory as the binary file, there is an example in the repository.
- run the binary
curl http://localhost:8088/metrics
# HELP cmd_output Generates gauges from arbitary linux cmds
# TYPE cmd_output gauge
cmd_output{command="echo 1",name="test"} 1
cmd_output{command="echo 20",name="test_2"} 20
cmd_output{command="wc -l /var/log/rsnapshot | awk '{print $1}'",name="line count of rsnapshot log"} 56