WARNING: Version 5.1 of Metricbeat has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
HAProxy Fields
editHAProxy Fields
editThis functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
HAProxy Module
haproxy Fields
editHAProxy metrics.
info Fields
editGeneral information about HAProxy processes.
haproxy.info.processes
edittype: long
Number of processes.
haproxy.info.process_num
edittype: long
Process number.
haproxy.info.pid
edittype: long
Process ID.
haproxy.info.run_queue
edittype: long
haproxy.info.tasks
edittype: long
haproxy.info.uptime.sec
edittype: long
Current uptime in seconds.
haproxy.info.memory.max.bytes
edittype: long
format: bytes
Maximum amount of memory usage in bytes (the Memmax_MB value converted to bytes).
haproxy.info.ulimit_n
edittype: long
Maximum number of open files for the process.
compress Fields
editbps Fields
edithaproxy.info.compress.bps.in
edittype: long
haproxy.info.compress.bps.out
edittype: long
haproxy.info.compress.bps.rate_limit
edittype: long
connection Fields
editrate Fields
edithaproxy.info.connection.rate.value
edittype: long
haproxy.info.connection.rate.limit
edittype: long
haproxy.info.connection.rate.max
edittype: long
haproxy.info.connection.current
edittype: long
Current connections.
haproxy.info.connection.total
edittype: long
Total connections.
haproxy.info.connection.ssl.current
edittype: long
Current SSL connections.
haproxy.info.connection.ssl.total
edittype: long
Total SSL connections.
haproxy.info.connection.ssl.max
edittype: long
Maximum SSL connections.
haproxy.info.connection.max
edittype: long
Maximum connections.
haproxy.info.connection.hard_max
edittype: long
haproxy.info.requests.total
edittype: long
haproxy.info.sockets.max
edittype: long
haproxy.info.requests.max
edittype: long
pipes Fields
edithaproxy.info.pipes.used
edittype: integer
haproxy.info.pipes.free
edittype: integer
haproxy.info.pipes.max
edittype: integer
session Fields
editNone
haproxy.info.session.rate.value
edittype: integer
haproxy.info.session.rate.limit
edittype: integer
haproxy.info.session.rate.max
edittype: integer
ssl Fields
editNone
haproxy.info.ssl.rate.value
edittype: integer
None
haproxy.info.ssl.rate.limit
edittype: integer
None
haproxy.info.ssl.rate.max
edittype: integer
None
frontend Fields
editNone
haproxy.info.ssl.frontend.key_rate.value
edittype: integer
None
haproxy.info.ssl.frontend.key_rate.max
edittype: integer
None
haproxy.info.ssl.frontend.session_reuse.pct
edittype: scaled_float
format: percent
None
backend Fields
editNone
haproxy.info.ssl.backend.key_rate.value
edittype: integer
None
haproxy.info.ssl.backend.key_rate.max
edittype: integer
MaxConnRate
haproxy.info.ssl.cached_lookups
edittype: long
None
haproxy.info.ssl.cache_misses
edittype: long
None
zlib_mem_usage Fields
edithaproxy.info.zlib_mem_usage.value
edittype: integer
haproxy.info.zlib_mem_usage.max
edittype: integer
haproxy.info.idle.pct
edittype: scaled_float
format: percent
stat Fields
editStats collected from HAProxy processes.
haproxy.stat.status
edittype: keyword
Status (UP, DOWN, NOLB, MAINT, or MAINT(via)…).
haproxy.stat.weight
edittype: long
Total weight (for backends), or server weight (for servers).
haproxy.stat.downtime
edittype: long
Total downtime (in seconds). For backends, this value is the downtime for the whole backend, not the sum of the downtime for the servers.
haproxy.stat.component_type
edittype: integer
Component type (0=frontend, 1=backend, 2=server, or 3=socket/listener).
haproxy.stat.process_id
edittype: integer
Process ID (0 for first instance, 1 for second, and so on).
haproxy.stat.service_name
edittype: keyword
Service name (FRONTEND for frontend, BACKEND for backend, or any name for server/listener).
haproxy.stat.in.bytes
edittype: long
format: bytes
Bytes in.
haproxy.stat.out.bytes
edittype: long
format: bytes
Bytes out.
haproxy.stat.last_change
edittype: integer
Number of seconds since the last UP→DOWN or DOWN→UP transition.
haproxy.stat.throttle.pct
edittype: scaled_float
format: percentage
Current throttle percentage for the server when slowstart is active, or no value if slowstart is inactive.
haproxy.stat.selected.total
edittype: long
Total number of times a server was selected, either for new sessions, or when re-dispatching. For servers, this field reports the the number of times the server was selected.
haproxy.stat.tracked.id
edittype: long
ID of the proxy/server if tracking is enabled.
haproxy.stat.connection.total
edittype: long
Cumulative number of connections.
haproxy.stat.connection.retried
edittype: long
Number of times a connection to a server was retried.
haproxy.stat.connection.time.avg
edittype: long
Average connect time in ms over the last 1024 requests.
haproxy.stat.request.denied
edittype: long
Requests denied because of security concerns.
- For TCP this is because of a matched tcp-request content rule.
- For HTTP this is because of a matched http-request or tarpit rule.
haproxy.stat.request.queued.current
edittype: long
Current queued requests. For backends, this field reports the number of requests queued without a server assigned.
haproxy.stat.request.queued.max
edittype: long
Maximum value of queued.current.
haproxy.stat.request.errors
edittype: long
Request errors. Some of the possible causes are:
- early termination from the client, before the request has been sent
- read error from the client
- client timeout
- client closed connection
- various bad requests from the client.
- request was tarpitted.
haproxy.stat.request.redispatched
edittype: long
Number of times a request was redispatched to another server. For servers, this field reports the number of times the server was switched away from.
haproxy.stat.request.connection.errors
edittype: long
Number of requests that encountered an error trying to connect to a server. For backends, this field reports the sum of the stat for all backend servers, plus any connection errors not associated with a particular server (such as the backend having no active servers).
rate Fields
edithaproxy.stat.request.rate.value
edittype: long
Number of HTTP requests per second over the last elapsed second.
haproxy.stat.request.rate.max
edittype: long
Maximum number of HTTP requests per second.
haproxy.stat.request.total
edittype: long
Total number of HTTP requests received.
haproxy.stat.response.errors
edittype: long
Number of response errors. This value includes the number of data transfers aborted by the server (haproxy.stat.server.aborted). Some other errors are: * write errors on the client socket (won’t be counted for the server stat) * failure applying filters to the response
haproxy.stat.response.time.avg
edittype: long
Average response time in ms over the last 1024 requests (0 for TCP).
haproxy.stat.response.denied
edittype: integer
Responses denied because of security concerns. For HTTP this is because of a matched http-request rule, or "option checkcache".
http Fields
edithaproxy.stat.response.http.1xx
edittype: long
HTTP responses with 1xx code.
haproxy.stat.response.http.2xx
edittype: long
HTTP responses with 2xx code.
haproxy.stat.response.http.3xx
edittype: long
HTTP responses with 3xx code.
haproxy.stat.response.http.4xx
edittype: long
HTTP responses with 4xx code.
haproxy.stat.response.http.5xx
edittype: long
HTTP responses with 5xx code.
haproxy.stat.response.http.other
edittype: long
HTTP responses with other codes (protocol error).
haproxy.stat.session.current
edittype: long
Number of current sessions.
haproxy.stat.session.max
edittype: long
Maximum number of sessions.
haproxy.stat.session.limit
edittype: long
Configured session limit.
haproxy.stat.session.rate.value
edittype: integer
Number of sessions per second over the last elapsed second.
haproxy.stat.session.rate.limit
edittype: integer
Configured limit on new sessions per second.
haproxy.stat.session.rate.max
edittype: integer
Maximum number of new sessions per second.
check Fields
edithaproxy.stat.check.status
edittype: keyword
Status of the last health check. One of:
UNK -> unknown INI -> initializing SOCKERR -> socket error L4OK -> check passed on layer 4, no upper layers testing enabled L4TOUT -> layer 1-4 timeout L4CON -> layer 1-4 connection problem, for example "Connection refused" (tcp rst) or "No route to host" (icmp) L6OK -> check passed on layer 6 L6TOUT -> layer 6 (SSL) timeout L6RSP -> layer 6 invalid response - protocol error L7OK -> check passed on layer 7 L7OKC -> check conditionally passed on layer 7, for example 404 with disable-on-404 L7TOUT -> layer 7 (HTTP/SMTP) timeout L7RSP -> layer 7 invalid response - protocol error L7STS -> layer 7 response error, for example HTTP 5xx
haproxy.stat.check.code
edittype: long
Layer 5-7 code, if available.
haproxy.stat.check.duration
edittype: long
Time in ms that it took to finish the last health check.
haproxy.stat.check.health.last
edittype: long
haproxy.stat.check.health.fail
edittype: long
haproxy.stat.check.agent.last
edittype: integer
haproxy.stat.check.failed
edittype: long
Number of checks that failed while the server was up.
haproxy.stat.check.down
edittype: long
Number of UP→DOWN transitions. For backends, this value is the number of transitions to the whole backend being down, rather than the sum of the transitions for each server.
haproxy.stat.client.aborted
edittype: integer
Number of data transfers aborted by the client.
server Fields
edithaproxy.stat.server.id
edittype: integer
Server ID (unique inside a proxy).
haproxy.stat.server.aborted
edittype: integer
Number of data transfers aborted by the server. This value is included in haproxy.stat.response.errors.
haproxy.stat.server.active
edittype: integer
Number of backend servers that are active, meaning that they are healthy and can receive requests from the load balancer.
haproxy.stat.server.backup
edittype: integer
Number of backend servers that are backup servers.
compressor Fields
edithaproxy.stat.compressor.in.bytes
edittype: long
format: bytes
Number of HTTP response bytes fed to the compressor.
haproxy.stat.compressor.out.bytes
edittype: integer
format: bytes
Number of HTTP response bytes emitted by the compressor.
haproxy.stat.compressor.bypassed.bytes
edittype: long
format: bytes
Number of bytes that bypassed the HTTP compressor (CPU/BW limit).
haproxy.stat.compressor.response.bytes
edittype: long
format: bytes
Number of HTTP responses that were compressed.
proxy Fields
edithaproxy.stat.proxy.id
edittype: integer
Unique proxy ID.
haproxy.stat.proxy.name
edittype: keyword
Proxy name.
queue Fields
edithaproxy.stat.queue.limit
edittype: integer
Configured queue limit (maxqueue) for the server, or nothing if the value of maxqueue is 0 (meaning no limit).
haproxy.stat.queue.time.avg
edittype: integer
The average queue time in ms over the last 1024 requests.