How to set up stats for HAProxy?
Solution 1:
That is not correct. There would be a stats page on http://yoursite.com:1935/haproxy?stats
To overcome this add another listener-
listen stats :1936
mode http
stats enable
stats hide-version
stats realm Haproxy\ Statistics
stats uri /
stats auth Username:Password
Then go to http://yoursite.com:1936/ and login.
Make sure your firewall isn't blocking this request.
Solution 2:
This did it for me:
listen stats
bind :9000
or
listen stats
bind 10.100.86.150:9000
Solution 3:
In new versions of haproxy (>1.6) you have to set the mode to http
instead of tcp
(default) to config : 'stats' statement ignored for frontend 'http-in' as it requires HTTP mode.