How do I configure HAProxy monitoring?

HAProxy is a commonly used load-balancer and proxy for TCP and HTTP-based applications that is considered to be fast, reliable, and well-suited for high-traffic websites. We support both socket and HTTP monitoring modes. Socket mode is recommended though.

Socket mode configuration

From version 1.5-dev13 onwards, HAProxy supports splitting processes and mapping them to CPU cores. This feature enables you to use all your CPU cores. Also, multiple HAProxy process, socket and process bindings can be automatically detected. Socket and process bindings are read from a HAProxy configuration file.

HTTP mode configuration

HTTP mode is simpler to configure, yet less powerful. It does not support multiple HAProxy processes and when traffic is overwhelming HAProxy can block HTTP stats. Depending on your HAProxy settings, enter either the User, Password, and URL for your HAProxy stats page (for example, http://localhost:1936/haproxy?stats), as shown in the image below, or simply enter a URI prefix.