Monitoring HAProxy - Configuring the HAProxy Stats page

Monitoring HAProxy - Configuring the HAProxy Stats page

To monitor a HAProxy instance:
  • Open the 'stats' port for collecting the metrics.
  • To enable metrics collection, add the following content at the bottom of the file /etc/haproxy/haproxy.cfg:
listen stats :9000
mode http
stats enable
stats hide-version
stats realm Haproxy\ Statistics
stats uri /
stats auth Username:Password
  • Restart the HAProxy instance. This will open up the stats in the port '9000' (we have specified 9000 as the port in this configuration). You can further add the same HAProxy for monitoring using the hostname and port.

Note:
  • You can change the port (9000 by default) to any free port that you wish to use.
  • The line number 7 is for setting up basic authentication for this stats url. A user can provide his own username and password
  • We use the following URL to collect metrics: http://[HOSTNAME]:[PORT]/;csv (Replace [HOSTNAME] and [PORT] with the respective hostname of the HAProxy instance and port which is mentioned in the above configuration).

                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • Self monitor Applications Manager using APM Insight Java Agent

                        Applications Manager is built with Java, hence we can monitor it using APM Insight Java Agent to measure it's performance continuously, which can be very much useful. Setting up APM Insight Java Agent Follow the below steps to download and set up the ...
                      • Uninstrumented Block of Code - APM Insight

                        In the traces tab --> Slowest Method Calls and Count we show if you find Un-instrumented block of code the reason is as follows: Basically, What is un-instrumented block of code in APM Insight? By default, APM Insight agent monitors known frameworks ...
                      • Self monitor Applications Manager using Real User Monitoring

                        We can monitor the Applications Manager using Real User Monitoring with a Java Script injection and this can be used to measure the Applications Manager's performance continuously. All you need is to install and setup the Real User Monitoring (RUM) ...
                      • Monitoring a Clustered RabbitMQ setup in APM

                        For Monitoring RabbitMQ, Applications Manager uses the Management Plugin provided by default RabbitMQ installations to collect performance metrics. The Management plugin provides a series of API endpoints required to monitor the target RabbitMQ ...
                      • APM Insight Troubleshooting - FAQs

                        Monitor Addition - FAQs 1. How to add an APM Insight Monitor? After you deploy the APM Insight agent in your Application Server with suitable Applications Manager credentials in the apminsight.conf file, APM Insight monitors will automatically be ...