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.

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 global configuration 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):

  1. Review the list of supported HAProxy versions.
  2. From the left-hand navigation menu, select Settings.
  3. Select Monitored technologies.
  4. Click Edit next to the HAProxy plugin listing.
  5. 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.
  6. Click Save.
  7. Set the HAProxy **switch to **On to enable HAProxy monitoring.
  8. Ensure that the Plugin manager switch is also set to the On position.

To enable HAProxy monitoring locally:

  1. Go to a Host page with HAProxy running.
  2. Click Edit to configure HAProxy locally.
  3. Expand the HAProxy plugin listing.
  4. 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.