Living in a AI World….

How to enable Metrics/Stats Page in HAProxy

in

Last reviewed: July 5, 2026. Applies to: HAProxy Stats Page configuration and live server metrics. Currentness note: Commands and screenshots are retained for the documented environment. Before production use, verify package names, image tags, cloud-provider UI labels, and plugin versions against your current platform.

Parsing the logs with HALog isn’t the only way to get metrics out of HAProxy. The HAProxy Stats Page can be enabled by adding the stats enable directive to a frontend or listen section. It displays live statistics of your servers. The follow listen section starts the Stats page listening on port 8404:

frontend stats
    bind *:8404
    stats enable
    stats uri /stats
    stats refresh 10s

Put the configuration above in the HAProxy configuration file and then restart the HAProxy service and then go to the following URL

http://<Ip-address>:8404/stats
HAProxy Stats Page showing live server metrics
Screenshot of HAProxy Metrics in Action!

Do you have any question, suggestion, or a correction? Do let me know at [email protected]



Follow

Instagram / LinkedIn