HAProxy Fieldsedit

Warning

This functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features.

HAProxy Module

haproxy Fieldsedit

HAProxy metrics.

info Fieldsedit

General information about HAProxy processes.

haproxy.info.processesedit

type: long

Number of processes.

haproxy.info.process_numedit

type: long

Process number.

haproxy.info.pidedit

type: long

Process ID.

haproxy.info.run_queueedit

type: long

haproxy.info.tasksedit

type: long

haproxy.info.uptime.secedit

type: long

Current uptime in seconds.

haproxy.info.memory.max.bytesedit

type: long

format: bytes

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

haproxy.info.ulimit_nedit

type: long

Maximum number of open files for the process.

compress Fieldsedit

bps Fieldsedit

haproxy.info.compress.bps.inedit

type: long

haproxy.info.compress.bps.outedit

type: long

haproxy.info.compress.bps.rate_limitedit

type: long

connection Fieldsedit

rate Fieldsedit

haproxy.info.connection.rate.valueedit

type: long

haproxy.info.connection.rate.limitedit

type: long

haproxy.info.connection.rate.maxedit

type: long

haproxy.info.connection.currentedit

type: long

Current connections.

haproxy.info.connection.totaledit

type: long

Total connections.

haproxy.info.connection.ssl.currentedit

type: long

Current SSL connections.

haproxy.info.connection.ssl.totaledit

type: long

Total SSL connections.

haproxy.info.connection.ssl.maxedit

type: long

Maximum SSL connections.

haproxy.info.connection.maxedit

type: long

Maximum connections.

haproxy.info.connection.hard_maxedit

type: long

haproxy.info.requests.totaledit

type: long

haproxy.info.sockets.maxedit

type: long

haproxy.info.requests.maxedit

type: long

pipes Fieldsedit

haproxy.info.pipes.usededit

type: integer

haproxy.info.pipes.freeedit

type: integer

haproxy.info.pipes.maxedit

type: integer

session Fieldsedit

None

haproxy.info.session.rate.valueedit

type: integer

haproxy.info.session.rate.limitedit

type: integer

haproxy.info.session.rate.maxedit

type: integer

ssl Fieldsedit

None

haproxy.info.ssl.rate.valueedit

type: integer

None

haproxy.info.ssl.rate.limitedit

type: integer

None

haproxy.info.ssl.rate.maxedit

type: integer

None

frontend Fieldsedit

None

haproxy.info.ssl.frontend.key_rate.valueedit

type: integer

None

haproxy.info.ssl.frontend.key_rate.maxedit

type: integer

None

haproxy.info.ssl.frontend.session_reuse.pctedit

type: scaled_float

format: percent

None

backend Fieldsedit

None

haproxy.info.ssl.backend.key_rate.valueedit

type: integer

None

haproxy.info.ssl.backend.key_rate.maxedit

type: integer

MaxConnRate

haproxy.info.ssl.cached_lookupsedit

type: long

None

haproxy.info.ssl.cache_missesedit

type: long

None

zlib_mem_usage Fieldsedit

haproxy.info.zlib_mem_usage.valueedit

type: integer

haproxy.info.zlib_mem_usage.maxedit

type: integer

haproxy.info.idle.pctedit

type: scaled_float

format: percent

stat Fieldsedit

Stats collected from HAProxy processes.

haproxy.stat.statusedit

type: keyword

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

haproxy.stat.weightedit

type: long

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

haproxy.stat.downtimeedit

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_typeedit

type: integer

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

haproxy.stat.process_idedit

type: integer

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

haproxy.stat.service_nameedit

type: keyword

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

haproxy.stat.in.bytesedit

type: long

format: bytes

Bytes in.

haproxy.stat.out.bytesedit

type: long

format: bytes

Bytes out.

haproxy.stat.last_changeedit

type: integer

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

haproxy.stat.throttle.pctedit

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.totaledit

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.idedit

type: long

ID of the proxy/server if tracking is enabled.

haproxy.stat.connection.totaledit

type: long

Cumulative number of connections.

haproxy.stat.connection.retriededit

type: long

Number of times a connection to a server was retried.

haproxy.stat.connection.time.avgedit

type: long

Average connect time in ms over the last 1024 requests.

haproxy.stat.request.deniededit

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.currentedit

type: long

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

haproxy.stat.request.queued.maxedit

type: long

Maximum value of queued.current.

haproxy.stat.request.errorsedit

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.redispatchededit

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.errorsedit

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 Fieldsedit

haproxy.stat.request.rate.valueedit

type: long

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

haproxy.stat.request.rate.maxedit

type: long

Maximum number of HTTP requests per second.

haproxy.stat.request.totaledit

type: long

Total number of HTTP requests received.

haproxy.stat.response.errorsedit

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.avgedit

type: long

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

haproxy.stat.response.deniededit

type: integer

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

http Fieldsedit

haproxy.stat.response.http.1xxedit

type: long

HTTP responses with 1xx code.

haproxy.stat.response.http.2xxedit

type: long

HTTP responses with 2xx code.

haproxy.stat.response.http.3xxedit

type: long

HTTP responses with 3xx code.

haproxy.stat.response.http.4xxedit

type: long

HTTP responses with 4xx code.

haproxy.stat.response.http.5xxedit

type: long

HTTP responses with 5xx code.

haproxy.stat.response.http.otheredit

type: long

HTTP responses with other codes (protocol error).

haproxy.stat.session.currentedit

type: long

Number of current sessions.

haproxy.stat.session.maxedit

type: long

Maximum number of sessions.

haproxy.stat.session.limitedit

type: long

Configured session limit.

haproxy.stat.session.rate.valueedit

type: integer

Number of sessions per second over the last elapsed second.

haproxy.stat.session.rate.limitedit

type: integer

Configured limit on new sessions per second.

haproxy.stat.session.rate.maxedit

type: integer

Maximum number of new sessions per second.

check Fieldsedit

haproxy.stat.check.statusedit

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.codeedit

type: long

Layer 5-7 code, if available.

haproxy.stat.check.durationedit

type: long

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

haproxy.stat.check.health.lastedit

type: long

haproxy.stat.check.health.failedit

type: long

haproxy.stat.check.agent.lastedit

type: integer

haproxy.stat.check.failededit

type: long

Number of checks that failed while the server was up.

haproxy.stat.check.downedit

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.abortededit

type: integer

Number of data transfers aborted by the client.

server Fieldsedit

haproxy.stat.server.idedit

type: integer

Server ID (unique inside a proxy).

haproxy.stat.server.abortededit

type: integer

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

haproxy.stat.server.activeedit

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.backupedit

type: integer

Number of backend servers that are backup servers.

compressor Fieldsedit

haproxy.stat.compressor.in.bytesedit

type: long

format: bytes

Number of HTTP response bytes fed to the compressor.

haproxy.stat.compressor.out.bytesedit

type: integer

format: bytes

Number of HTTP response bytes emitted by the compressor.

haproxy.stat.compressor.bypassed.bytesedit

type: long

format: bytes

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

haproxy.stat.compressor.response.bytesedit

type: long

format: bytes

Number of HTTP responses that were compressed.

proxy Fieldsedit

haproxy.stat.proxy.idedit

type: integer

Unique proxy ID.

haproxy.stat.proxy.nameedit

type: keyword

Proxy name.

queue Fieldsedit

haproxy.stat.queue.limitedit

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.avgedit

type: integer

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