haproxy Fields

edit

This 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

edit

HAProx metrics.

info Fields

edit

General infomration collected on HAProxy process

haproxy.info.nb_proc

edit

type: integer

Number of processes

haproxy.info.process_num

edit

type: integer

Process number

haproxy.info.pid

edit

type: integer

Process ID

haproxy.info.uptime_sec

edit

type: integer

Current uptime in seconds

haproxy.info.mem_max_bytes

edit

type: integer

format: bytes

Max number of memory usage in bytes (The Memmax_MB value converted to bytes)

haproxy.info.ulimit_n

edit

type: integer

Max number of open files for process

compress Fields

edit

bps Fields

edit

haproxy.info.compress.bps.in

edit

type: integer

haproxy.info.compress.bps.out

edit

type: integer

haproxy.info.compress.bps.rate_limit

edit

type: integer

conn Fields

edit

rate Fields

edit

haproxy.info.conn.rate.value

edit

type: integer

haproxy.info.conn.rate.limit

edit

type: integer

curr Fields

edit

haproxy.info.curr.conns

edit

type: integer

haproxy.info.curr.ssl_conns

edit

type: integer

cum Fields

edit

haproxy.info.cum.conns

edit

type: integer

haproxy.info.cum.req

edit

type: integer

haproxy.info.cum.ssl_conns

edit

type: integer

max Fields

edit

Maximum values reported by HAProxy.

haproxy.info.max.hard_conn

edit

type: integer

HardMaxconn

haproxy.info.max.ssl.conns

edit

type: integer

MaxSslConns

haproxy.info.max.ssl.rate

edit

type: integer

MaxSslRate

haproxy.info.max.sock

edit

type: integer

Maxsock

haproxy.info.max.conn.value

edit

type: integer

Maxconn

haproxy.info.max.conn.rate

edit

type: integer

MaxConnRate

haproxy.info.max.sess_rate

edit

type: integer

MaxSessRate

haproxy.info.max.pipes

edit

type: integer

Maxpipes

haproxy.info.max.zlib_mem_usage

edit

type: integer

MaxZlibMemUsage

pipes Fields

edit

haproxy.info.pipes.used

edit

type: integer

haproxy.info.pipes.free

edit

type: integer

sess Fields

edit

rate Fields

edit

haproxy.info.sess.rate.value

edit

type: integer

haproxy.info.sess.rate.limit

edit

type: integer

ssl Fields

edit

rate Fields

edit

haproxy.info.ssl.rate.value

edit

type: integer

haproxy.info.ssl.rate.limit

edit

type: integer

frontend Fields

edit

haproxy.info.ssl.frontend.key_rate

edit

type: integer

haproxy.info.ssl.frontend.max_key_rate

edit

type: integer

haproxy.info.ssl.frontend.session_reuse_pct

edit

type: integer

backend Fields

edit

haproxy.info.ssl.backend.key_rate

edit

type: integer

haproxy.info.ssl.backend.max_key_rate

edit

type: integer

haproxy.info.ssl.cached_lookups

edit

type: integer

haproxy.info.ssl.cache_misses

edit

type: integer

haproxy.info.zlib_mem_usage

edit

type: integer

haproxy.info.tasks

edit

type: integer

haproxy.info.run_queue

edit

type: integer

haproxy.info.idle_pct

edit

type: scaled_float

format: percent

stat Fields

edit

Stats collected from HAProxy process

haproxy.stat.pxname

edit

type: keyword

proxy name

haproxy.stat.svname

edit

type: keyword

service name (FRONTEND for frontend, BACKEND for backend, any name for server/listener)

haproxy.stat.qcur

edit

type: integer

current queued requests. For the backend this reports the number queued without a server assigned

haproxy.stat.qmax

edit

type: integer

max value of qcur

haproxy.stat.scur

edit

type: integer

current sessions

haproxy.stat.smax

edit

type: integer

max sessions

haproxy.stat.slim

edit

type: integer

configured session limit

haproxy.stat.stot

edit

type: keyword

cumulative number of connections

haproxy.stat.bin

edit

type: integer

bytes in

haproxy.stat.bout

edit

type: integer

bytes out

haproxy.stat.dreq

edit

type: integer

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

edit

type: integer

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

haproxy.stat.ereq

edit

type: integer

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

edit

type: integer

number of requests that encountered an error trying to connect to a backend server. The backend stat is the sum of the stat for all servers of that backend, plus any connection errors not associated with a particular server (such as the backend having no active servers).

haproxy.stat.eresp

edit

type: integer

response errors. srv_abrt will be counted here also. Some other errors are: * write error on the client socket (won’t be counted for the server stat) * failure applying filters to the response.

haproxy.stat.wretr

edit

type: integer

number of times a connection to a server was retried.

haproxy.stat.wredis

edit

type: integer

number of times a request was redispatched to another server. The server value counts the number of times that server was switched away from.

haproxy.stat.status

edit

type: keyword

status (UP/DOWN/NOLB/MAINT/MAINT(via)…​)

haproxy.stat.weight

edit

type: integer

total weight (backend), server weight (server)

haproxy.stat.act

edit

type: integer

number of active servers (backend), server is active (server)

haproxy.stat.bck

edit

type: integer

number of backup servers (backend), server is backup (server)

haproxy.stat.chkfail

edit

type: integer

number of failed checks. (Only counts checks failed when the server is up.)

haproxy.stat.chkdown

edit

type: integer

number of UP→DOWN transitions. The backend counter counts transitions to the whole backend being down, rather than the sum of the counters for each server.

haproxy.stat.lastchg

edit

type: integer

number of seconds since the last UP<→DOWN transition

haproxy.stat.downtime

edit

type: integer

total downtime (in seconds). The value for the backend is the downtime for the whole backend, not the sum of the server downtime.

haproxy.stat.qlimit

edit

type: integer

configured maxqueue for the server, or nothing in the value is 0 (default, meaning no limit)

haproxy.stat.pid

edit

type: integer

process id (0 for first instance, 1 for second, …​)

haproxy.stat.iid

edit

type: integer

unique proxy id

haproxy.stat.sid

edit

type: integer

server id (unique inside a proxy)

haproxy.stat.throttle

edit

type: integer

current throttle percentage for the server, when slowstart is active, or no value if not in slowstart.

haproxy.stat.lbtot

edit

type: integer

total number of times a server was selected, either for new sessions, or when re-dispatching. The server counter is the number of times that server was selected.

haproxy.stat.tracked

edit

type: integer

id of proxy/server if tracking is enabled.

haproxy.stat.component_type

edit

type: integer

(0=frontend, 1=backend, 2=server, 3=socket/listener)

rate Fields

edit

haproxy.stat.rate.value

edit

type: integer

number of sessions per second over last elapsed second

haproxy.stat.rate.lim

edit

type: integer

configured limit on new sessions per second

haproxy.stat.rate.max

edit

type: integer

max number of new sessions per second

check Fields

edit

haproxy.stat.check.status

edit

type: keyword

status of 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: integer

layer5-7 code, if available

haproxy.stat.check.duration

edit

type: integer

time in ms took to finish last health check

hrsp Fields

edit

haproxy.stat.hrsp.1xx

edit

type: integer

http responses with 1xx code

haproxy.stat.hrsp.2xx

edit

type: integer

http responses with 2xx code

haproxy.stat.hrsp.3xx

edit

type: integer

http responses with 3xx code

haproxy.stat.hrsp.4xx

edit

type: integer

http responses with 4xx code

haproxy.stat.hrsp.5xx

edit

type: integer

http responses with 5xx code

haproxy.stat.hrsp.other

edit

type: integer

http responses with other codes (protocol error)

haproxy.stat.hanafail

edit

type: integer

failed health checks details

req Fields

edit

rate Fields

edit

haproxy.stat.req.rate.value

edit

type: integer

HTTP requests per second over last elapsed second

haproxy.stat.req.rate.max

edit

type: integer

max number of HTTP requests per second observed

haproxy.stat.req.tot

edit

type: integer

total number of HTTP requests received

haproxy.stat.cli_abrt

edit

type: integer

number of data transfers aborted by the client

haproxy.stat.srv_abrt

edit

type: integer

number of data transfers aborted by the server (inc. in eresp)

comp Fields

edit

haproxy.stat.comp.in

edit

type: integer

number of HTTP response bytes fed to the compressor

haproxy.stat.comp.out

edit

type: integer

number of HTTP response bytes emitted by the compressor

haproxy.stat.comp.byp

edit

type: integer

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

haproxy.stat.comp.rsp

edit

type: integer

number of HTTP responses that were compressed

last Fields

edit

haproxy.stat.last.sess

edit

type: integer

number of seconds since last session assigned to server/backend

haproxy.stat.last.chk

edit

type: keyword

last health check contents or textual error

haproxy.stat.last.agt

edit

type: keyword

last agent check contents or textual error

haproxy.stat.qtime

edit

type: integer

the average queue time in ms over the 1024 last requests

haproxy.stat.ctime

edit

type: integer

the average connect time in ms over the 1024 last requests

haproxy.stat.rtime

edit

type: integer

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

haproxy.stat.ttime

edit

type: integer

the average total session time in ms over the 1024 last requests