Skip to content

Instantly share code, notes, and snippets.

@GarimaDamani
Created August 7, 2019 00:35
Show Gist options
  • Save GarimaDamani/59c00adb2cec799680115ce6e061b38a to your computer and use it in GitHub Desktop.
Save GarimaDamani/59c00adb2cec799680115ce6e061b38a to your computer and use it in GitHub Desktop.
Supervisord conf file to run parse_logs and set_prometheus_metrics scripts all the time and output the error log logs if any at location specified. Run as user root
[program:parse_logs]
command=bash /var/opt/scripts/parse_logs.sh
autostart=true
autorestart=false
startretries=1
stderr_logfile=/var/log/parse_logs.err.log
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
user=root
[program:set_prometheus_metrics]
command=python3 -u /var/opt/scripts/set_prometheus_metrics.py
autostart=true
autorestart=true
startretries=3
stderr_logfile=/var/log/set_prometheus_metrics.err.log
stdout_logfile=/var/log/set_prometheus_metrics.out.log
user=root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment