supervisord

This commit is contained in:
Mateusz Gruszczyński
2025-11-01 20:23:11 +01:00
parent 52935f9d92
commit 2c3397fcc8
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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: