HAProxy fields

edit

HAProxy Module

haproxy fields

edit

HAProxy metrics.

info fields

edit

General information about HAProxy processes.

haproxy.info.processes

type: long

Number of processes.

haproxy.info.process_num

type: long

Process number.

haproxy.info.pid

type: alias

alias to: process.pid

Process ID.

haproxy.info.run_queue

type: long

haproxy.info.tasks

type: long

haproxy.info.uptime.sec

type: long

Current uptime in seconds.

haproxy.info.memory.max.bytes

type: long

format: bytes

Maximum amount of memory usage in bytes (the Memmax_MB value converted to bytes).

haproxy.info.ulimit_n

type: long

Maximum number of open files for the process.

compress fields

edit

bps fields

edit
haproxy.info.compress.bps.in

type: long

haproxy.info.compress.bps.out

type: long

haproxy.info.compress.bps.rate_limit

type: long

connection fields

edit

rate fields

edit
haproxy.info.connection.rate.value

type: long

haproxy.info.connection.rate.limit

type: long

haproxy.info.connection.rate.max

type: long

haproxy.info.connection.current

type: long

Current connections.

haproxy.info.connection.total

type: long

Total connections.

haproxy.info.connection.ssl.current

type: long

Current SSL connections.

haproxy.info.connection.ssl.total

type: long

Total SSL connections.

haproxy.info.connection.ssl.max

type: long

Maximum SSL connections.

haproxy.info.connection.max

type: long

Maximum connections.

haproxy.info.connection.hard_max

type: long

haproxy.info.requests.total

type: long

haproxy.info.sockets.max

type: long

haproxy.info.requests.max

type: long

pipes fields

edit
haproxy.info.pipes.used

type: integer

haproxy.info.pipes.free

type: integer

haproxy.info.pipes.max

type: integer

session fields

edit

None

haproxy.info.session.rate.value

type: integer

haproxy.info.session.rate.limit

type: integer

haproxy.info.session.rate.max

type: integer

ssl fields

edit

None

haproxy.info.ssl.rate.value

type: integer

None

haproxy.info.ssl.rate.limit

type: integer

None

haproxy.info.ssl.rate.max

type: integer

None

frontend fields

edit

None

haproxy.info.ssl.frontend.key_rate.value

type: integer

None

haproxy.info.ssl.frontend.key_rate.max

type: integer

None

haproxy.info.ssl.frontend.session_reuse.pct

type: scaled_float

format: percent

None

backend fields

edit

None

haproxy.info.ssl.backend.key_rate.value

type: integer

None

haproxy.info.ssl.backend.key_rate.max

type: integer

MaxConnRate

haproxy.info.ssl.cached_lookups

type: long

None

haproxy.info.ssl.cache_misses

type: long

None

zlib_mem_usage fields

edit
haproxy.info.zlib_mem_usage.value

type: integer

haproxy.info.zlib_mem_usage.max

type: integer

haproxy.info.idle.pct

type: scaled_float

format: percent

stat fields

edit

Stats collected from HAProxy processes.

haproxy.stat.status

type: keyword

Status (UP, DOWN, NOLB, MAINT, or MAINT(via)…​).

haproxy.stat.weight

type: long

Total weight (for backends), or server weight (for servers).

haproxy.stat.downtime

type: 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

type: integer

Component type (0=frontend, 1=backend, 2=server, or 3=socket/listener).

haproxy.stat.process_id

type: alias

alias to: process.pid

Process ID (0 for first instance, 1 for second, and so on).

haproxy.stat.service_name

type: keyword

Service name (FRONTEND for frontend, BACKEND for backend, or any name for server/listener).

haproxy.stat.in.bytes

type: long

format: bytes

Bytes in.

haproxy.stat.out.bytes

type: long

format: bytes

Bytes out.

haproxy.stat.last_change

type: integer

Number of seconds since the last UP→DOWN or DOWN→UP transition.

haproxy.stat.throttle.pct

type: 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

type: 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

type: long

ID of the proxy/server if tracking is enabled.

haproxy.stat.connection.total

type: long

Cumulative number of connections.

haproxy.stat.connection.retried

type: long

Number of times a connection to a server was retried.

haproxy.stat.connection.time.avg

type: long

Average connect time in ms over the last 1024 requests.

haproxy.stat.request.denied

type: 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

type: long

Current queued requests. For backends, this field reports the number of requests queued without a server assigned.

haproxy.stat.request.queued.max

type: long

Maximum value of queued.current.

haproxy.stat.request.errors

type: 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

type: 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

type: 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

edit
haproxy.stat.request.rate.value

type: long

Number of HTTP requests per second over the last elapsed second.

haproxy.stat.request.rate.max

type: long

Maximum number of HTTP requests per second.

haproxy.stat.request.total

type: long

Total number of HTTP requests received.

haproxy.stat.response.errors

type: 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

type: long

Average response time in ms over the last 1024 requests (0 for TCP).

haproxy.stat.response.denied

type: integer

Responses denied because of security concerns. For HTTP this is because of a matched http-request rule, or "option checkcache".

http fields

edit
haproxy.stat.response.http.1xx

type: long

HTTP responses with 1xx code.

haproxy.stat.response.http.2xx

type: long

HTTP responses with 2xx code.

haproxy.stat.response.http.3xx

type: long

HTTP responses with 3xx code.

haproxy.stat.response.http.4xx

type: long

HTTP responses with 4xx code.

haproxy.stat.response.http.5xx

type: long

HTTP responses with 5xx code.

haproxy.stat.response.http.other

type: long

HTTP responses with other codes (protocol error).

haproxy.stat.session.current

type: long

Number of current sessions.

haproxy.stat.session.max

type: long

Maximum number of sessions.

haproxy.stat.session.limit

type: long

Configured session limit.

haproxy.stat.session.rate.value

type: integer

Number of sessions per second over the last elapsed second.

haproxy.stat.session.rate.limit

type: integer

Configured limit on new sessions per second.

haproxy.stat.session.rate.max

type: integer

Maximum number of new sessions per second.

check fields

edit
haproxy.stat.check.status

type: 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

type: long

Layer 5-7 code, if available.

haproxy.stat.check.duration

type: long

Time in ms that it took to finish the last health check.

haproxy.stat.check.health.last

type: keyword

The result of the last health check.

haproxy.stat.check.health.fail

type: long

Number of failed checks.

haproxy.stat.check.agent.last

type: integer

haproxy.stat.check.failed

type: long

Number of checks that failed while the server was up.

haproxy.stat.check.down

type: 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

type: integer

Number of data transfers aborted by the client.

server fields

edit
haproxy.stat.server.id

type: integer

Server ID (unique inside a proxy).

haproxy.stat.server.aborted

type: integer

Number of data transfers aborted by the server. This value is included in haproxy.stat.response.errors.

haproxy.stat.server.active

type: 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

type: integer

Number of backend servers that are backup servers.

compressor fields

edit
haproxy.stat.compressor.in.bytes

type: long

format: bytes

Number of HTTP response bytes fed to the compressor.

haproxy.stat.compressor.out.bytes

type: integer

format: bytes

Number of HTTP response bytes emitted by the compressor.

haproxy.stat.compressor.bypassed.bytes

type: long

format: bytes

Number of bytes that bypassed the HTTP compressor (CPU/BW limit).

haproxy.stat.compressor.response.bytes

type: long

format: bytes

Number of HTTP responses that were compressed.

proxy fields

edit
haproxy.stat.proxy.id

type: integer

Unique proxy ID.

haproxy.stat.proxy.name

type: keyword

Proxy name.

queue fields

edit
haproxy.stat.queue.limit

type: 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

type: integer

The average queue time in ms over the last 1024 requests.