Skip to content

Latest commit

 

History

History
138 lines (137 loc) · 7.88 KB

Metrics-Details.md

File metadata and controls

138 lines (137 loc) · 7.88 KB

Metrics Description

  1. qcur : current queued requests. For the backend this reports the number queued without a server assigned.
  2. qmax : max value of qcur
  3. scur : current sessions
  4. smax : max sessions
  5. slim : configured session limit
  6. stot : cumulative number of sessions
  7. bin : bytes in
  8. bout : bytes out
  9. dreq : 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.
  1. dresp : responses denied because of security concerns.
    - For http this is because of a matched http-request rule, or "option checkcache".
  1. ereq : 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.
  1. econ : 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).
  2. eresp : 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.
  1. wretr : number of times a connection to a server was retried.
  2. wredis : number of times a request was redispatched to another server. The server value counts the number of times that server was switched away from.
  3. status : status (UP/DOWN/NOLB/MAINT/MAINT(via)/MAINT(resolution)...)
  4. weight : total weight (backend), server weight (server)
  5. act : number of active servers (backend), server is active (server)
  6. bck : number of backup servers (backend), server is backup (server)
  7. chkfail : number of failed checks. (Only counts checks failed when the server is up.)
  8. chkdown : 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.
  9. lastchg : number of seconds since the last UP<->DOWN transition
  10. downtime : total downtime (in seconds). The value for the backend is the downtime for the whole backend, not the sum of the server downtime.
  11. qlimit : configured maxqueue for the server, or nothing in the value is 0 (default, meaning no limit)
  12. pid : process id (0 for first instance, 1 for second, ...)
  13. iid : unique proxy id
  14. sid : server id (unique inside a proxy)
  15. throttle : current throttle percentage for the server, when slowstart is active, or no value if not in slowstart.
  16. lbtot : 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.
  17. tracked : id of proxy/server if tracking is enabled.
  18. type : (0=frontend, 1=backend, 2=server, 3=socket/listener)
  19. rate : number of sessions per second over last elapsed second
  20. rate_lim : configured limit on new sessions per second
  21. rate_max : max number of new sessions per second
  22. check_status : 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
       
    Notice: If a check is currently running, the last known status will be reported, prefixed with "* ".
       e. g. "* L7OK".
  1. check_code : layer5-7 code, if available
  2. check_duration : time in ms took to finish last health check
  3. hrsp_1xx : http responses with 1xx code
  4. hrsp_2xx : http responses with 2xx code
  5. hrsp_3xx : http responses with 3xx code
  6. hrsp_4xx : http responses with 4xx code
  7. hrsp_5xx : http responses with 5xx code
  8. hrsp_other : http responses with other codes (protocol error)
  9. hanafail : failed health checks details
  10. req_rate : HTTP requests per second over last elapsed second
  11. req_rate_max : max number of HTTP requests per second observed
  12. req_tot : total number of HTTP requests received
  13. cli_abrt : number of data transfers aborted by the client
  14. srv_abrt : number of data transfers aborted by the server (inc. in eresp)
  15. comp_in : number of HTTP response bytes fed to the compressor
  16. comp_out : number of HTTP response bytes emitted by the compressor
  17. comp_byp : number of bytes that bypassed the HTTP compressor (CPU/BW limit)
  18. comp_rsp : number of HTTP responses that were compressed
  19. lastsess : number of seconds since last session assigned to server/backend
  20. last_chk : last health check contents or textual error
  21. last_agt : last agent check contents or textual error
  22. qtime : the average queue time in ms over the 1024 last requests
  23. ctime : the average connect time in ms over the 1024 last requests
  24. rtime : the average response time in ms over the 1024 last requests (0 for TCP)
  25. ttime : the average total session time in ms over the 1024 last requests
  26. agent_status : status of last agent 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)
       L7OK    -> agent reported "up"
       L7STS   -> agent reported "fail", "stop", or "down"
  1. agent_code : numeric code reported by agent if any (unused for now)
  2. agent_duration : time in ms taken to finish last check
  3. check_desc : short human-readable description of check_status
  4. agent_desc : short human-readable description of agent_status
  5. check_rise : server's rise parameter used by checks
  6. check_fall : server's fall parameter used by checks
  7. check_health : server's health check value between 0 and rise+fall-1
  8. agent_rise : agent's rise parameter, normally 1
  9. agent_fall : agent's fall parameter, normally 1
  10. agent_health : agent's health parameter, between 0 and rise+fall-1
  11. addr : address:port or unix. IPv6 has brackets around the address.
  12. cookie : server's cookie value or backend's cookie name
  13. mode : proxy mode (tcp, http, health, unknown)
  14. algo : load balancing algorithm
  15. conn_rate : number of connections over the last elapsed second
  16. conn_rate_max : highest known conn_rate
  17. conn_tot : cumulative number of connections
  18. intercepted : cumulative number of intercepted requests (monitor, stats)
  19. dcon : requests denied by tcp-request connection rules
  20. dses : requests denied by tcp-request session rules