In this
tutorial we learn how to enable HAProxy stats on centos server.We can get lot of info like data transfer, node
status, connection status using HAProxy stats . After installing HAProxy we
should enable HAProxy stats to get information through web browser.
Recommended Read: How to install and configure HAProxy on CentOS 7 server.
Enable HAProxy stats on centos server
To enable
HAProxy stats first we need to go haproxy configuration file and edit this file
and add the below lines after default section.
listen stats
192.168.137.6:3000
mode http
maxconn 10
timeout client 300s
timeout server 300s
timeout connect 300s
timeout queue 300s
stats enable
stats refresh 10s
stats show-node
stats auth haproxyadmin:haproxyadmin
stats uri /haproxy
After doing the above
configuration we can access using the below link through the web browser.
http://192.168.137.6:3000/haproxy
http://192.168.137.6:3000/haproxy
username : haproxyadmin
password: haproxyadmin
How to enable HAProxy stats on CentOS 7 server step by step guide |
you can change the
auth parameter using stats auth parameter and also you can change uri parameter
as per your choice.
That’s all. We have
enabled HAProxy stats if this article helpful please share it!!!!!
0 comments:
Post a Comment