HAProxy Fields

edit

HAProxy Module

haproxy Fields

edit

HAProxy metrics.

info Fields

edit

General information about HAProxy processes.

haproxy.info.processes

edit

type: long

Number of processes.

haproxy.info.process_num

edit

type: long

Process number.

haproxy.info.pid

edit

type: long

Process ID.

haproxy.info.run_queue

edit

type: long

haproxy.info.tasks

edit

type: long

haproxy.info.uptime.sec

edit

type: long

Current uptime in seconds.

haproxy.info.memory.max.bytes

edit

type: long

format: bytes

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

haproxy.info.ulimit_n

edit

type: long

Maximum number of open files for the process.

compress Fields

edit

bps Fields

edit

haproxy.info.compress.bps.in

edit

type: long

haproxy.info.compress.bps.out

edit

type: long

haproxy.info.compress.bps.rate_limit

edit

type: long

connection Fields

edit

rate Fields

edit

haproxy.info.connection.rate.value

edit

type: long

haproxy.info.connection.rate.limit

edit

type: long

haproxy.info.connection.rate.max

edit

type: long

haproxy.info.connection.current

edit

type: long

Current connections.

haproxy.info.connection.total

edit

type: long

Total connections.

haproxy.info.connection.ssl.current

edit

type: long

Current SSL connections.

haproxy.info.connection.ssl.total

edit

type: long

Total SSL connections.

haproxy.info.connection.ssl.max

edit

type: long

Maximum SSL connections.

haproxy.info.connection.max

edit

type: long

Maximum connections.

haproxy.info.connection.hard_max

edit

type: long

haproxy.info.requests.total

edit

type: long

haproxy.info.sockets.max

edit

type: long

haproxy.info.requests.max

edit

type: long

pipes Fields

edit

haproxy.info.pipes.used

edit

type: integer

haproxy.info.pipes.free

edit

type: integer

haproxy.info.pipes.max

edit

type: integer

session Fields

edit

None

haproxy.info.session.rate.value

edit

type: integer

haproxy.info.session.rate.limit

edit

type: integer

haproxy.info.session.rate.max

edit

type: integer

ssl Fields

edit

None

haproxy.info.ssl.rate.value

edit

type: integer

None

haproxy.info.ssl.rate.limit

edit

type: integer

None

haproxy.info.ssl.rate.max

edit

type: integer

None

frontend Fields

edit

None

haproxy.info.ssl.frontend.key_rate.value

edit

type: integer

None

haproxy.info.ssl.frontend.key_rate.max

edit

type: integer

None

haproxy.info.ssl.frontend.session_reuse.pct

edit

type: scaled_float

format: percent

None

backend Fields

edit

None

haproxy.info.ssl.backend.key_rate.value

edit

type: integer

None

haproxy.info.ssl.backend.key_rate.max

edit

type: integer

MaxConnRate

haproxy.info.ssl.cached_lookups

edit

type: long

None

haproxy.info.ssl.cache_misses

edit

type: long

None

zlib_mem_usage Fields

edit

haproxy.info.zlib_mem_usage.value

edit

type: integer

haproxy.info.zlib_mem_usage.max

edit

type: integer

haproxy.info.idle.pct

edit

type: scaled_float

format: percent

stat Fields

edit

Stats collected from HAProxy processes.

haproxy.stat.status

edit

type: keyword

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

haproxy.stat.weight

edit

type: long

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

haproxy.stat.downtime

edit

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

edit

type: integer

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

haproxy.stat.process_id

edit

type: integer

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

haproxy.stat.service_name

edit

type: keyword

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

haproxy.stat.in.bytes

edit

type: long

format: bytes

Bytes in.

haproxy.stat.out.bytes

edit

type: long

format: bytes

Bytes out.

haproxy.stat.last_change

edit

type: integer

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

haproxy.stat.throttle.pct

edit

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

edit

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

edit

type: long

ID of the proxy/server if tracking is enabled.

haproxy.stat.connection.total

edit

type: long

Cumulative number of connections.

haproxy.stat.connection.retried

edit

type: long

Number of times a connection to a server was retried.

haproxy.stat.connection.time.avg

edit

type: long

Average connect time in ms over the last 1024 requests.

haproxy.stat.request.denied

edit

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

edit

type: long

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

haproxy.stat.request.queued.max

edit

type: long

Maximum value of queued.current.

haproxy.stat.request.errors

edit

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

edit

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

edit

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

edit

type: long

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

haproxy.stat.request.rate.max

edit

type: long

Maximum number of HTTP requests per second.

haproxy.stat.request.total

edit

type: long

Total number of HTTP requests received.

haproxy.stat.response.errors

edit

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

edit

type: long

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

haproxy.stat.response.denied

edit

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

edit

type: long

HTTP responses with 1xx code.

haproxy.stat.response.http.2xx

edit

type: long

HTTP responses with 2xx code.

haproxy.stat.response.http.3xx

edit

type: long

HTTP responses with 3xx code.

haproxy.stat.response.http.4xx

edit

type: long

HTTP responses with 4xx code.

haproxy.stat.response.http.5xx

edit

type: long

HTTP responses with 5xx code.

haproxy.stat.response.http.other

edit

type: long

HTTP responses with other codes (protocol error).

haproxy.stat.session.current

edit

type: long

Number of current sessions.

haproxy.stat.session.max

edit

type: long

Maximum number of sessions.

haproxy.stat.session.limit

edit

type: long

Configured session limit.

haproxy.stat.session.rate.value

edit

type: integer

Number of sessions per second over the last elapsed second.

haproxy.stat.session.rate.limit

edit

type: integer

Configured limit on new sessions per second.

haproxy.stat.session.rate.max

edit

type: integer

Maximum number of new sessions per second.

check Fields

edit

haproxy.stat.check.status

edit

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

edit

type: long

Layer 5-7 code, if available.

haproxy.stat.check.duration

edit

type: long

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

haproxy.stat.check.health.last

edit

type: long

haproxy.stat.check.health.fail

edit

type: long

haproxy.stat.check.agent.last

edit

type: integer

haproxy.stat.check.failed

edit

type: long

Number of checks that failed while the server was up.

haproxy.stat.check.down

edit

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

edit

type: integer

Number of data transfers aborted by the client.

server Fields

edit

haproxy.stat.server.id

edit

type: integer

Server ID (unique inside a proxy).

haproxy.stat.server.aborted

edit

type: integer

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

haproxy.stat.server.active

edit

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

edit

type: integer

Number of backend servers that are backup servers.

compressor Fields

edit

haproxy.stat.compressor.in.bytes

edit

type: long

format: bytes

Number of HTTP response bytes fed to the compressor.

haproxy.stat.compressor.out.bytes

edit

type: integer

format: bytes

Number of HTTP response bytes emitted by the compressor.

haproxy.stat.compressor.bypassed.bytes

edit

type: long

format: bytes

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

haproxy.stat.compressor.response.bytes

edit

type: long

format: bytes

Number of HTTP responses that were compressed.

proxy Fields

edit

haproxy.stat.proxy.id

edit

type: integer

Unique proxy ID.

haproxy.stat.proxy.name

edit

type: keyword

Proxy name.

queue Fields

edit

haproxy.stat.queue.limit

edit

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

edit

type: integer

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