Thursday, January 31, 2019

How to Enable HAProxy Stats

No comments
Hi Dear Friends,

In this post We would like to share infinity knowladge My Good experience and Best solution For .

Laravel Examples

HAProxy Stats provides a lot of information about data transfer, total connection, server state etc. After installing HAProxy if you want to view HAProxy stats in your web browser, You can easily configure it by making few changes in your HAProxy configuration using following steps.

Step 1: Enable Stats in HAProxy

To enable stats edit your haproxy configuration file and add below entry after defaults section.
listen  stats   192.168.10.10:1936
        mode            http
        log             global

        maxconn 10

        clitimeout      100s
        srvtimeout      100s
        contimeout      100s
        timeout queue   100s

        stats enable
        stats hide-version
        stats refresh 30s
        stats show-node
        stats auth admin:password
        stats uri  /haproxy?stats

Step 2: Access HAProxy Stats

Your can access HAProxy stats using following url. Change ip with your haproxy server ip address.
 URL: http://192.168.10.10:1936/haproxy?stats
 Login user: admin
 Login password: password
haproxy-stats

Step 3: Change Login Details

If you want to changed login details of HAProxy stats, edit your configuration and update “stats auth” value like below
 stats auth  username:password
Save configuration file and restart HAProxy to update service.

Step 4: Change HAProxy Stats URL

To change url of haproxy stats edit configuration file and update following value.
stats uri  /ha-stats
or
stats uri  /stats
Save configuration file and restart HAProxy to update service. Now you can access url like http://192.168.10.10:1936/ha-stats or http://192.168.10.10:1936/stats.
Haproxy stats configuration has been completed successfully.
Try this it will help you and for more information click here: Laravel Examples.

Read :

I hope you like this Post, Please feel free to comment below, your Any Idea, suggestion and problems if you face - I am here to Resolve your Any problems.
We hope it can help you...

No comments :

Post a Comment