HAProxy extension

  • Latest Dynatrace
  • Extension
  • Published Oct 27, 2025

Monitor HAProxy Load balancer using socket or HTTP connections remotely.

Get started

Overview

Run the HAProxy extension runs remotely from your ActiveGate.

HAProxy is configurable to use Socket mode or HTTP mode. Every minute, data is collected from your HAProxy server and sent to Dynatrace.

haproxy

Use the in-product Hub to provide the necessary device configuration for your HAProxy instance and activate this extension in your environment.

Use cases

  • Monitor HAProxy services and services
  • Understand the health of services, such as monitoring the number of requests that are denied or have errors.
  • Enable alerting on detected anomalies

Compatibility information

  • If using Socket Mode, a socket connection must be open from ActiveGate to your HAProxy server.
  • To ingest stats metrics (haproxy.stats), socket mode must be used instead of HTTP mode.
    • NOTE: The socket port is different than the HTTP port.
  • All metric keys containing .stats. require the use of socket mode. Else, the Info feature set includes metrics that can be retrieved using HTTP mode.

Details

The extension package contains:

  • New Dashboard
  • Classic Dashboard
  • Topology and relationship definitions for HAProxy servers and HAProxy services.
  • Unified Analysis pages for each entity.

License consumption

This extension queries for metrics every minute. In both classic and DPS licensing models, license consumption is based on metric datapoints.

To estimate the amount of metric datapoints produced by an extension configuration per minute, use the following list which estimates a number of metrics per featureset and a multiplier value depending on which entity the metric is split by.

By adding these together an estimation of metric datapoints ingested per minute can be formed.

default: 1 x HAProxy Server

Aborts: 2 x HAProxy Service

Bytes: 2 x HAProxy Service

Connection: 4 x HAProxy Server

Errors: 5 x HAProxy Service

HTTP responses: 4 x HAProxy Service

Info: 51 x HAProxy Server

Queuing: 4 x HAProxy Service

Rate: 2 x HAProxy Service

Request: 2 x HAProxy Service

Response: 4 x HAProxy Service

Sessions: 4 x HAProxy Service

DPS licensing:

Approximate yearly datapoints = <metric datapoints per minute> * 60 minutes * 24 hours * 365 days

Dynatrace classic licensing:

In the Dynatrace classic licensing model, metric ingestion will consume Davis Data Units (DDUs) at the rate of .001 DDUs per metric data point.

Multiply the above formula for annual data points by .001 to estimate annual DDU usage.

Feature sets

When activating your extension using monitoring configuration, you can limit monitoring to one of the feature sets. To work properly the extension has to collect at least one metric after the activation.

In highly segmented networks, feature sets can reflect the segments of your environment. Then, when you create a monitoring configuration, you can select a feature set and a corresponding ActiveGate group that can connect to this particular segment.

All metrics that aren't categorized into any feature set are considered to be the default and are always reported.

A metric inherits the feature set of a subgroup, which in turn inherits the feature set of a group. Also, the feature set defined on the metric level overrides the feature set defined on the subgroup level, which in turn overrides the feature set defined on the group level.

Request
Metric nameMetric keyDescription
Request ratehaproxy.stats.request_rateHTTP requests per second
Request rate maxhaproxy.stats.request_rate_maxMax number of requests per second observed
default
Metric nameMetric keyDescription
Availabilityhaproxy.server.availabilityConnectivity from ActiveGate to HAProxy server. This value reflects availability from this extension view.
Response
Metric nameMetric keyDescription
Response timehaproxy.stats.response_timeAverage response time in ms
Total timehaproxy.stats.total_timeAverage total session time in ms.
Response time maxhaproxy.stats.response_time_maxMaximum value of response time
Total time maxhaproxy.stats.total_time_maxMaximum total time in ms.
Queuing
Metric nameMetric keyDescription
Queued requestshaproxy.stats.queuedCurrent queued requests. For the backend this reports the number queued without a server assigned.
Queued requests maxhaproxy.stats.queued_maxMaximum number of queued requests in minute
Queue timehaproxy.stats.queue_timeAverage queue time in ms over the 1024 last requests.
Queued time maxhaproxy.stats.queue_time_maxMaximum queue time
Connection
Metric nameMetric keyDescription
Connect timehaproxy.stats.connect_timeAverage connect time in ms.
Connect time maxhaproxy.stats.connect_time_maxMax connection time in ms.
Connection ratehaproxy.stats.connection_rateNumber of connections per second
Connection rate maxhaproxy.stats.connection_rate_maxMax number of connections per second.
HTTP responses
Metric nameMetric keyDescription
HTTP 2xx responseshaproxy.stats.http_2xx_responsesNumber of 2xx http responses
HTTP 3xx responseshaproxy.stats.http_3xx_responsesNumber of 3xx http responses
HTTP 4xx responseshaproxy.stats.http_4xx_responsesNumber of 4xx http responses
HTTP 5xx responseshaproxy.stats.http_5xx_responsesNumber of 5xx http responses
Aborts
Metric nameMetric keyDescription
Client abortshaproxy.stats.client_abortsNumber of data transfers aborted by client
Server abortshaproxy.stats.server_abortsNumber of data transfers aborted by server.
Errors
Metric nameMetric keyDescription
Denied requestshaproxy.stats.denied_requestsNumber of requests denied
Denied responseshaproxy.stats.denied_responsesNumber of denied responses
Error requestshaproxy.stats.error_requestsNumber of error requests
Error responseshaproxy.stats.error_responsesNumber of error responses
Connection errorshaproxy.stats.connection_errorsNumber of requests that encountered an error connecting to backend server
Rate
Metric nameMetric keyDescription
Sessions ratehaproxy.stats.rateNumber of sessions per second
Sessions rate maxhaproxy.stats.rate_maxMax number of sessions per second
Bytes
Metric nameMetric keyDescription
Bytes inhaproxy.stats.bytes_inIncoming bytes transferred
Bytes outhaproxy.stats.bytes_outOutgoing bytes transferred
Sessions
Metric nameMetric keyDescription
Sessionshaproxy.stats.sessionsCurrent number of sessions.
Sessions limithaproxy.stats.sessions_limitConfigured number of sessions limit.
Session utilization %haproxy.stats.session_utilizationPercent of sessions used over limit
Sessions maxhaproxy.stats.sessions_maxMax number of sessions.
Info
Metric nameMetric keyDescription
Active jobshaproxy.info.active_jobsNumber of jobs returned by show info command.
Active listenershaproxy.info.active_listenersNumber of active listeners
Number of active peershaproxy.info.active_peersNumber of active peers
Busy pollinghaproxy.info.busy_pollingNumber of busy polling
Output ratehaproxy.info.bytes_out_rateAverage bytes output rate
Bytes out totalhaproxy.info.bytes_out_totalNumber of bytes sent out
Compressed bits inhaproxy.info.compress_bits_inIncoming compressed data in bits per second
Compressed bits outhaproxy.info.compress_bits_outOutgoing compressed data in bits per second
Compressed bit ratehaproxy.info.compress_bits_rate_limitRate limit of compressed data in bits per second
Connected peershaproxy.info.connected_peersNumber of connected peers.
Connection rate limithaproxy.info.connection_rate_limitRate limit of connections.
Connections totalhaproxy.info.connections_totalNumber of total connections
Backend SSL sessions ratehaproxy.info.current_backend_ssl_key_rateKey rate of SSL backend sessions.
Current connectionshaproxy.info.current_connectionsNumber of current connections
Frontend SSL sessions ratehaproxy.info.current_frontend_ssl_key_rateKey rate of SSL frontend sessions.
Current SSL connectionshaproxy.info.current_ssl_connectionsNumber of current SSL connections
SSL Requestshaproxy.info.current_ssl_rateRate of SSL requests.
Current taskshaproxy.info.current_tasksNumber of current tasks
Dropped logshaproxy.info.dropped_logsNumber of dropped logs
Failed resolutionshaproxy.info.failed_resolutionsNumber of failed resolutions
Percent frontend SSL reusehaproxy.info.frontend_ssl_reuseRate of reuse of SSL frontend sessions
Hard max connectionshaproxy.info.hard_max_connectionsMaximum hard connections
Percentage idle timehaproxy.info.idle_time_percentPercentage idle time
SSL requests limithaproxy.info.limit_ssl_rateRate limit of SSL requests.
Max Backend SSL sessions ratehaproxy.info.max_backend_ssl_key_rateMaximum key rate of SSL backend sessions.
Max connection ratehaproxy.info.max_connection_rateMaximum rate of connections
Max connectionshaproxy.info.max_connectionsHighest value of connections
Max frontend SSL key sessionshaproxy.info.max_frontend_ssl_key_rateMaximum Frontend SSL key rate
Memory max byteshaproxy.info.max_memory_bytesMaximum number of memory used
Max pipes usedhaproxy.info.max_pipesMaximum number of pipes used
Max session ratehaproxy.info.max_session_rateMaximum rate of sessions
Max sockets usedhaproxy.info.max_socketsMaximum number of sockets used
Max SSL connectionshaproxy.info.max_ssl_connectionsMaximum number of SSL connections
Max SSL requests ratehaproxy.info.max_ssl_rateMaximum rate of SSL requests.
Pipes freehaproxy.info.pipes_freeNumber of free pipes
Pipes usedhaproxy.info.pipes_usedNumber of pipes used
Pool allocated byteshaproxy.info.pool_allocated_bytesNumber of bytes allocated to pool
Pool total failureshaproxy.info.pool_failures_totalNumber of total pool failures
Pool used byteshaproxy.info.pool_used_bytesNumber of bytes used by pool
Process numberhaproxy.info.process_numProcess number returned by show info command.
Processeshaproxy.info.processesNumber of processes returned by show info command.
Requests totalhaproxy.info.requests_totalNumber of total requests
Session ratehaproxy.info.session_rateNumber of sessions per second
Session rate limithaproxy.info.session_rate_limitRate limit of sessions
Total bytes spliced outhaproxy.info.spliced_bytes_out_totalTotal number of bytes emitted by current worker process through a kernel pipe since started
SSL cache lookupshaproxy.info.ssl_cache_lookups_totalTotal number of SSL session ID lookups in the SSL session cache on this worker since started
SSL cache misseshaproxy.info.ssl_cache_misses_totalTotal number of SSL session ID lookups that didn't find a session in the SSL session cache on this worker since started
SSL connectionshaproxy.info.ssl_connections_totalTotal number of SSL endpoints on this worker process since started (front+back)
Threadshaproxy.info.threadsNumber of started threads
Unstoppable jobshaproxy.info.unstoppable_jobsCurrent number of unstoppable jobs on the current worker process (master connections)
Uptimehaproxy.info.uptimeCurrent uptime returned by show info command.
Related tags
NetworkPythonLoad balancerHAProxyInfrastructure Observability