supervisord
This commit is contained in:
@@ -9,8 +9,8 @@ pidfile=/var/run/supervisord.pid
|
|||||||
command=/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg
|
command=/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
stderr_logfile=/var/log/supervisor/haproxy.err.log
|
stderr_logfile=/var/log/haproxy/haproxy.err.log
|
||||||
stdout_logfile=/var/log/supervisor/haproxy.out.log
|
stdout_logfile=/var/log/haproxy/haproxy.log
|
||||||
priority=100
|
priority=100
|
||||||
stopasgroup=true
|
stopasgroup=true
|
||||||
killasgroup=true
|
killasgroup=true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import requests
|
import requests
|
||||||
import csv
|
import csv
|
||||||
|
|
||||||
HAPROXY_STATS_URL = 'http://127.0.0.1:8080/;csv'
|
HAPROXY_STATS_URL = 'http://127.0.0.1:8484/;csv'
|
||||||
|
|
||||||
def fetch_haproxy_stats():
|
def fetch_haproxy_stats():
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user