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.
While HAProxy monitoring is in beta you need to manually configure and activate it before you can use it. Configuration of HAProxy monitoring on all your hosts only takes about a minute, regardless of the number of hosts that HAProxy runs on. Even better, the plugin doesn’t require you to create a config file, restart your agents, or execute numerous commands.
There are two configuration options available for HAProxy monitoring:
global(applicable to all hosts) The main advantage of using the
globalconfiguration option is that, once configured, when a new host running HAProxy is detected in the future, monitoring will be activated and metrics will be gathered automatically.
local(specific hosts only)
To enable HAProxy monitoring globally (recommended):
- Review the list of supported HAProxy versions.
- From the left-hand navigation menu, select Settings.
- Select Monitored technologies.
- Click Edit next to the HAProxy plugin listing.
- Depending on your HAProxy settings, enter either the User, Password, and URL for your HAProxy stats page (e.g., http://localhost:1936/haproxy?stats), or simply enter a URI prefix.
- Click Save.
- Set the HAProxy switch to On to enable HAProxy monitoring.
- Ensure that the Plugin manager switch is also set to the On position.
To enable HAProxy monitoring locally:
- Go to a Host page with HAProxy running.
- Click Edit to configure HAProxy locally.
- Expand the HAProxy plugin listing.
- Follow 4-7 as for global config.
NOTE: Before you can enable the
local configuration option you must first disable the
global configuration option if it was turned ON previously.