HAProxy, or High Availability Proxy, is used for load balancing. Load Balancers direct traffic to available application servers. A load-balancer server may have only the load balancer application (HAProxy) installed or may be an application server in addition to a load balancer. Each load-balancer server has its own public IP address but shares the same fully qualified domain name as the other load-balancer servers in your configuration.

Why use the HAproxy Telegraf Plugin?

The HAProxy Telegraf Plugin gathers metrics using the stats socket or HTTP statistics page of a HAProxy server. These metrics will help you improve the performance of your web applications. Keep in mind that it is important to collect metrics to gain visibility into HAProxy’s performance as well. These insights will easily detect and resolve issues proactively ensuring the health of your HAProxy instance — and importantly, ensure the performance and reliability of your server environment.

How to use the HAproxy Telegraf Plugin

The following information may be useful when getting started, but please consult the HAProxy documentation for complete and up-to-date instructions.

The stats enable option can be used to add unauthenticated access over HTTP using the default settings. To enable the unix socket, begin by reading about the stats socket option.

Key HAproxy Metrics to use for monitoring

Some of the important HAproxy metrics that you should proactively monitor include:

  • server - address of the server data was gathered from
  • proxy - proxy name
  • sv - service name
  • type - proxy session type
  • status (string)
  • check_status (string)
  • last_chk (string)
  • mode (string)
  • tracked (string)
  • agent_status (string)
  • last_agt (string)
  • addr (string)
  • cookie (string)
  • lastsess (int)

For more information, please check out the documentation.

Project URL   Documentation

Related Resources

Monitoring Network Interface Template

Monitoring network interface performance is important in identifying the root cause of performance degradation and network bottlenecks.

Conntrack Telegraf Plugin

The Conntrack Telegraf plugin collects stats from Netfilter's conntrack-tools. This helps you track network connections as they are processed by netfilter.

HAProxy Monitoring Template

With the right HAProxy InfluxDB template by your side, monitoring these critical backend metrics has literally never been easier.

Scroll to Top