Exporters are add-ons designed to collect data from various services and applications, facilitating integration with tools for monitoring and real-time analytics. In Roxy-WI, you can easily install exporters to integrate with Prometheus, one of the most popular and most powerful monitoring tools available.

The following types of exporters are available:

HAProxy has supported a built-in Prometheus exporter since version 2.4.9. If you are using an older version, you will need to upgrade HAProxy.

Roxy-WI allows you to install Prometheus via the web interface. The built-in Prometheus exporters are available only if HAProxy is installed from the RPM repository via Roxy-WI. Otherwise, you will need to install an external exporter.

To install the exporters, go to the Installation => Monitoring section.

exporters

Select the version of the desired exporter and the server where the exporter will be installed, then click Install.

Once you have completed the installation ot the exporter, it is recommended to combine the Stats page and the Prometheus endpoint into a single frontend section. To achieve this, add the following lines to your HAProxy configuration file:

As you can see from the configuration file snippet mentioned above, we enable the Native HTTP representation (HTX) mode. The http-request use-service line instructs HAProxy to intercept requests for /metrics and direct them to the exporter. While you can choose a different path for the exporter, /metrics is the default path used by Prometheus. If everything is configured correctly, the list of metrics will be accessible at http://localhost:8085/metrics.