varnish-counters·续
sc_pipe_overflow – counter - diag
Session Err PIPE_OVERFLOW
Number of session closes with Error PIPE_OVERFLOW (Session pipe overflow)
sc_range_short – counter - diag
Session Err RANGE_SHORT
Number of session closes with Error RANGE_SHORT (Insufficient data for range)
sc_req_http20 – counter - diag
Session Err REQ_HTTP20
Number of session closes with Error REQ_HTTP20 (HTTP2 not accepted)
sc_vcl_failure – counter - diag
Session Err VCL_FAILURE
Number of session closes with Error VCL_FAILURE (VCL failure)
sc_rapid_reset – counter - diag
Session Err RAPID_RESET
Number of times we failed an http/2 session because it hit its configured limits for the number of permitted rapid stream resets.
sc_bankrupt – counter - diag
Session Err BANKRUPT
Number of times we failed an http/2 session because all the streams were waiting for their windows to be credited when h2_window_timeout triggered.
client_resp_500 – counter - diag
Delivery failed due to insufficient workspace.
Number of times we failed a response due to running out of workspace memory during delivery.
ws_backend_overflow – counter - info
workspace_backend overflows
Number of times we ran out of space in workspace_backend.
ws_client_overflow – counter - info
workspace_client overflows
Number of times we ran out of space in workspace_client.
ws_thread_overflow – counter - info
workspace_thread overflows
Number of times we ran out of space in workspace_thread.
ws_session_overflow – counter - info
workspace_session overflows
Number of times we ran out of space in workspace_session.
shm_records – counter - diag
SHM records
Number of log records written to the shared memory log.
shm_writes – counter - diag
SHM writes
Number of individual writes to the shared memory log. A single write may batch multiple records for buffered tasks.
shm_flushes – counter - diag
SHM flushes due to overflow
Number of writes performed before the end of a buffered task because adding a record to a batch would exceed vsl_buffer.
shm_cont – counter - diag
SHM lock contention
Number of times a write had to wait for the lock.
shm_cycles – counter - diag
SHM cycles through VSL space
Number of times a write of log records would reach past the end of the shared memory log, cycling back to the beginning.
shm_bytes – counter - diag
SHM bytes
Number of bytes written to the shared memory log.
backend_req – counter - info
Backend requests made
n_vcl – gauge - info
Number of loaded VCLs in total
n_vcl_avail – gauge - diag
Number of VCLs available
n_vcl_discard – gauge - diag
Number of discarded VCLs
vcl_fail – counter - info
VCL failures
Count of failures which prevented VCL from completing.
bans – gauge - info
Count of bans
Number of all bans in system, including bans superseded by newer bans and bans already checked by the ban-lurker.
bans_completed – gauge - diag
Number of bans marked ‘completed’
Number of bans which are no longer active, either because they got checked by the ban-lurker or superseded by newer identical bans.
bans_obj – gauge - diag
Number of bans using obj.*
Number of bans which use obj.* variables. These bans can possibly be washed by the ban-lurker.
bans_req – gauge - diag
Number of bans using req.*
Number of bans which use req.* variables. These bans cannot be washed by the ban-lurker.
bans_added – counter - diag
Bans added
Counter of bans added to ban list.
bans_deleted – counter - diag
Bans deleted
Counter of bans deleted from ban list.
bans_tested – counter - diag
Bans tested against objects (lookup)
Count of how many bans and objects have been tested against each other during hash lookup.
bans_obj_killed – counter - diag
Objects killed by bans (lookup)
Number of objects killed by bans during object lookup.
bans_lurker_tested – counter - diag
Bans tested against objects (lurker)
Count of how many bans and objects have been tested against each other by the ban-lurker.
bans_tests_tested – counter - diag
Ban tests tested against objects (lookup)
Count of how many tests and objects have been tested against each other during lookup. ‘ban req.url == foo && req.http.host == bar’ counts as one in ‘bans_tested’ and as two in ‘bans_tests_tested’
bans_lurker_tests_tested – counter - diag
Ban tests tested against objects (lurker)
Count of how many tests and objects have been tested against each other by the ban-lurker. ‘ban req.url == foo && req.http.host == bar’ counts as one in ‘bans_tested’ and as two in ‘bans_tests_tested’
bans_lurker_obj_killed – counter - diag
Objects killed by bans (lurker)
Number of objects killed by the ban-lurker.
bans_lurker_obj_killed_cutoff – counter - diag
Objects killed by bans for cutoff (lurker)
Number of objects killed by the ban-lurker to keep the number of bans below ban_cutoff.
bans_dups – counter - diag
Bans superseded by other bans
Count of bans replaced by later identical bans.
bans_lurker_contention – counter - diag
Lurker gave way for lookup
Number of times the ban-lurker had to wait for lookups.
bans_persisted_bytes – gauge - diag
Bytes used by the persisted ban lists
Number of bytes used by the persisted ban lists.
bans_persisted_fragmentation – gauge - diag
Extra bytes in persisted ban lists due to fragmentation
Number of extra bytes accumulated through dropped and completed bans in the persistent ban lists.
n_purges – counter - info
Number of purge operations executed
n_obj_purged – counter - info
Number of purged objects
exp_mailed – counter - diag
Number of objects mailed to expiry thread
Number of objects mailed to expiry thread for handling.
exp_received – counter - diag
Number of objects received by expiry thread
Number of objects received by expiry thread for handling.
hcb_nolock – counter - debug
HCB Lookups without lock
hcb_lock – counter - debug
HCB Lookups with lock
hcb_insert – counter - debug
HCB Inserts
esi_errors – counter - diag
ESI parse errors (unlock)
esi_warnings – counter - diag
ESI parse warnings (unlock)
vmods – gauge - info
Loaded VMODs
n_gzip – counter - info
Gzip operations
n_gunzip – counter - info
Gunzip operations
n_test_gunzip – counter - info
Test gunzip operations
Those operations occur when Varnish receives a compressed object from a backend. They are done to verify the gzip stream while it’s inserted in storage.
http1_iovs_flush – counter - info
Premature iovec flushes
Number of additional writes performed on HTTP1 connections because the number of IO vectors was too small to submit all possible IO in one go. This number is configured through the
http1_iovsparameter for client connections and implicitly defined by the amount of free workspace for backend connections.
MEMPOOL – Memory Pool Counters#
live – gauge - debug
In use
pool – gauge - debug
In Pool
sz_wanted – gauge - debug
Size requested
sz_actual – gauge - debug
Size allocated
allocs – counter - debug
Allocations
frees – counter - debug
Frees
recycle – counter - debug
Recycled from pool
timeout – counter - debug
Timed out from pool
toosmall – counter - debug
Too small to recycle
surplus – counter - debug
Too many for pool
randry – counter - debug
Pool ran dry
MGT – Management Process Counters#
uptime – counter - info
Management process uptime
Uptime in seconds of the management process
child_start – counter - diag
Child process started
Number of times the child process has been started
child_exit – counter - diag
Child process normal exit
Number of times the child process has been cleanly stopped
child_stop – counter - diag
Child process unexpected exit
Number of times the child process has exited with an unexpected return code
child_died – counter - diag
Child process died (signal)
Number of times the child process has died due to signals
child_dump – counter - diag
Child process core dumped
Number of times the child process has produced core dumps
child_panic – counter - diag
Child process panic
Number of times the management process has caught a child panic
SMA – Malloc Stevedore Counters#
c_req – counter - info
Allocator requests
Number of times the storage has been asked to provide a storage segment.
c_fail – counter - info
Allocator failures
Number of times the storage has failed to provide a storage segment.
c_bytes – counter - info
Bytes allocated
Number of total bytes allocated by this storage.
c_freed – counter - info
Bytes freed
Number of total bytes returned to this storage.
g_alloc – gauge - info
Allocations outstanding
Number of storage allocations outstanding.
g_bytes – gauge - info
Bytes outstanding
Number of bytes allocated from the storage.
g_space – gauge - info
Bytes available
Number of bytes left in the storage.
SMF – File Stevedore Counters#
c_req – counter - info
Allocator requests
Number of times the storage has been asked to provide a storage segment.
c_fail – counter - info
Allocator failures
Number of times the storage has failed to provide a storage segment.
c_bytes – counter - info
Bytes allocated
Number of total bytes allocated by this storage.
c_freed – counter - info
Bytes freed
Number of total bytes returned to this storage.
g_alloc – gauge - info
Allocations outstanding
Number of storage allocations outstanding.
g_bytes – gauge - info
Bytes outstanding
Number of bytes allocated from the storage.
g_space – gauge - info
Bytes available
Number of bytes left in the storage.
g_smf – gauge - info
N struct smf
g_smf_frag – gauge - info
N small free smf
g_smf_large – gauge - info
N large free smf
SMU – Umem Stevedore Counters#
c_req – counter - info
Allocator requests
Number of times the storage has been asked to provide a storage segment.
c_fail – counter - info
Allocator failures
Number of times the storage has failed to provide a storage segment.
c_bytes – counter - info
Bytes allocated
Number of total bytes allocated by this storage.
c_freed – counter - info
Bytes freed
Number of total bytes returned to this storage.
g_alloc – gauge - info
Allocations outstanding
Number of storage allocations outstanding.
g_bytes – gauge - info
Bytes outstanding
Number of bytes allocated from the storage.
g_space – gauge - info
Bytes available
Number of bytes left in the storage.
VBE – Backend Counters#
happy – bitmap - info
Happy health probes
Represents the last probe results as a bitmap. Happy probes are bits set to 1, and the unhappy ones are set to 0. The highest bits represent the oldest probes.
bereq_hdrbytes – counter - info
Request header bytes
Total backend request header bytes sent
bereq_bodybytes – counter - info
Request body bytes
Total backend request body bytes sent
beresp_hdrbytes – counter - info
Response header bytes
Total backend response header bytes received
beresp_bodybytes – counter - info
Response body bytes
Total backend response body bytes received
pipe_hdrbytes – counter - info
Pipe request header bytes
Total request bytes sent for piped sessions
pipe_out – counter - info
Piped bytes to backend
Total number of bytes forwarded to backend in pipe sessions
pipe_in – counter - info
Piped bytes from backend
Total number of bytes forwarded from backend in pipe sessions
conn – gauge - info
Concurrent connections used
The number of currently used connections to the backend. This number is always less or equal to the number of connections to the backend (as, for example shown as ESTABLISHED for TCP connections in netstat) due to connection pooling.
req – counter - info
Backend requests sent
unhealthy – counter - info
Fetches not attempted due to backend being unhealthy
busy – counter - info
Fetches not attempted due to backend being busy
Number of times the max_connections limit was reached
fail – counter - info
Connections failed
Counter of failed opens. Detailed reasons are given in the fail_* counters (DIAG level) and in the log under the FetchError tag.
This counter is the sum of all detailed fail_* counters.
All fail_* counters may be slightly inaccurate for efficiency.
fail_eacces – counter - diag
Connections failed with EACCES or EPERM
fail_eaddrnotavail – counter - diag
Connections failed with EADDRNOTAVAIL
fail_econnrefused – counter - diag
Connections failed with ECONNREFUSED
fail_enetunreach – counter - diag
Connections failed with ENETUNREACH
fail_etimedout – counter - diag
Connections failed ETIMEDOUT
fail_other – counter - diag
Connections failed for other reason
helddown – counter - diag
Connection opens not attempted
Connections not attempted during the backend_local_error_holddown or backend_remote_error_holddown interval after a fundamental connection issue.
VCP – Connection Pool counters#
ref_hit – counter - debug
Number of times we have found an existing conn. pool
Number of times we have found an existing connection pool while creating a backend.
ref_miss – counter - debug
Number of times we have not found an existing conn. pool
Number of times we have not found an existing connection pool while creating a backend.
WAITER – Waiter counters#
conns – gauge - debug
Number of idle connections
Number of idle connections being waited over.
remclose – counter - debug
Number of idle connections closed by peer
Number of idle connections that experienced closure by peer while being waited for.
timeout – counter - debug
Number of idle connections timeout
Number of idle connections that experienced a timeout event while being waited for.
action – counter - debug
Number of idle connections read events
Number of idle connections that experienced a read event while being waited for.
AUTHORS#
This man page was written by Lasse Karstensen, using content from vsc2rst written by Tollef Fog Heen.
