I’m writing python plugin that collects Haproxy stats. Here is part of configuration file that I use, so the stats for particular process are available under http://ip_address:1936/haproxy?stats:
listen stats 0.0.0.0:1936
clitimeout 100s srvtimeout 100s
However once Haproxy service is restarted (sudo service restart) additional process appears that also listens on same ip-port. As a result on every single request I get randomly either ‘old’ or ‘new’ process statistics - I can differ those by looking at “General process Information”.
Is it intentional behaviour? Or maybe there are some additional steps that I need to perform?