From 22e15f3b5b3f544a3972eb376305266411436a38 Mon Sep 17 00:00:00 2001 From: Lukasz Jagiello Date: Thu, 26 May 2016 00:23:33 +0000 Subject: [PATCH] (varnish plugin) More int -> uint64 changes --- plugins/inputs/varnish/README.md | 588 ++++++++++++------------- plugins/inputs/varnish/varnish_test.go | 2 +- 2 files changed, 295 insertions(+), 295 deletions(-) diff --git a/plugins/inputs/varnish/README.md b/plugins/inputs/varnish/README.md index 88850aac2..0b8c97aef 100644 --- a/plugins/inputs/varnish/README.md +++ b/plugins/inputs/varnish/README.md @@ -10,7 +10,7 @@ This plugin gathers stats from [Varnish HTTP Cache](https://varnish-cache.org/) ## The default location of the varnishstat binary can be overridden with: binary = "/usr/bin/varnishstat" - ## By default, telegraf gathers stats for 3 metric points. + ## By default, telegraf gathers stats for 3 metric pouint64s. ## Setting stats will override the defaults shown below. ## stats may also be set to ["all"], which will collect all stats stats = ["MAIN.cache_hit", "MAIN.cache_miss", "MAIN.uptime"] @@ -22,299 +22,299 @@ This is the full list of stats provided by varnish. Stats will be grouped by the MEMPOOL, etc). In the output, the prefix will be used as a tag, and removed from field names. - varnish - - MAIN.uptime (int, count, Child process uptime) - - MAIN.sess_conn (int, count, Sessions accepted) - - MAIN.sess_drop (int, count, Sessions dropped) - - MAIN.sess_fail (int, count, Session accept failures) - - MAIN.sess_pipe_overflow (int, count, Session pipe overflow) - - MAIN.client_req_400 (int, count, Client requests received,) - - MAIN.client_req_411 (int, count, Client requests received,) - - MAIN.client_req_413 (int, count, Client requests received,) - - MAIN.client_req_417 (int, count, Client requests received,) - - MAIN.client_req (int, count, Good client requests) - - MAIN.cache_hit (int, count, Cache hits) - - MAIN.cache_hitpass (int, count, Cache hits for) - - MAIN.cache_miss (int, count, Cache misses) - - MAIN.backend_conn (int, count, Backend conn. success) - - MAIN.backend_unhealthy (int, count, Backend conn. not) - - MAIN.backend_busy (int, count, Backend conn. too) - - MAIN.backend_fail (int, count, Backend conn. failures) - - MAIN.backend_reuse (int, count, Backend conn. reuses) - - MAIN.backend_toolate (int, count, Backend conn. was) - - MAIN.backend_recycle (int, count, Backend conn. recycles) - - MAIN.backend_retry (int, count, Backend conn. retry) - - MAIN.fetch_head (int, count, Fetch no body) - - MAIN.fetch_length (int, count, Fetch with Length) - - MAIN.fetch_chunked (int, count, Fetch chunked) - - MAIN.fetch_eof (int, count, Fetch EOF) - - MAIN.fetch_bad (int, count, Fetch bad T- E) - - MAIN.fetch_close (int, count, Fetch wanted close) - - MAIN.fetch_oldhttp (int, count, Fetch pre HTTP/1.1) - - MAIN.fetch_zero (int, count, Fetch zero len) - - MAIN.fetch_1xx (int, count, Fetch no body) - - MAIN.fetch_204 (int, count, Fetch no body) - - MAIN.fetch_304 (int, count, Fetch no body) - - MAIN.fetch_failed (int, count, Fetch failed (all) - - MAIN.fetch_no_thread (int, count, Fetch failed (no) - - MAIN.pools (int, count, Number of thread) - - MAIN.threads (int, count, Total number of) - - MAIN.threads_limited (int, count, Threads hit max) - - MAIN.threads_created (int, count, Threads created) - - MAIN.threads_destroyed (int, count, Threads destroyed) - - MAIN.threads_failed (int, count, Thread creation failed) - - MAIN.thread_queue_len (int, count, Length of session) - - MAIN.busy_sleep (int, count, Number of requests) - - MAIN.busy_wakeup (int, count, Number of requests) - - MAIN.sess_queued (int, count, Sessions queued for) - - MAIN.sess_dropped (int, count, Sessions dropped for) - - MAIN.n_object (int, count, object structs made) - - MAIN.n_vampireobject (int, count, unresurrected objects) - - MAIN.n_objectcore (int, count, objectcore structs made) - - MAIN.n_objecthead (int, count, objecthead structs made) - - MAIN.n_waitinglist (int, count, waitinglist structs made) - - MAIN.n_backend (int, count, Number of backends) - - MAIN.n_expired (int, count, Number of expired) - - MAIN.n_lru_nuked (int, count, Number of LRU) - - MAIN.n_lru_moved (int, count, Number of LRU) - - MAIN.losthdr (int, count, HTTP header overflows) - - MAIN.s_sess (int, count, Total sessions seen) - - MAIN.s_req (int, count, Total requests seen) - - MAIN.s_pipe (int, count, Total pipe sessions) - - MAIN.s_pass (int, count, Total pass- ed requests) - - MAIN.s_fetch (int, count, Total backend fetches) - - MAIN.s_synth (int, count, Total synthethic responses) - - MAIN.s_req_hdrbytes (int, count, Request header bytes) - - MAIN.s_req_bodybytes (int, count, Request body bytes) - - MAIN.s_resp_hdrbytes (int, count, Response header bytes) - - MAIN.s_resp_bodybytes (int, count, Response body bytes) - - MAIN.s_pipe_hdrbytes (int, count, Pipe request header) - - MAIN.s_pipe_in (int, count, Piped bytes from) - - MAIN.s_pipe_out (int, count, Piped bytes to) - - MAIN.sess_closed (int, count, Session Closed) - - MAIN.sess_pipeline (int, count, Session Pipeline) - - MAIN.sess_readahead (int, count, Session Read Ahead) - - MAIN.sess_herd (int, count, Session herd) - - MAIN.shm_records (int, count, SHM records) - - MAIN.shm_writes (int, count, SHM writes) - - MAIN.shm_flushes (int, count, SHM flushes due) - - MAIN.shm_cont (int, count, SHM MTX contention) - - MAIN.shm_cycles (int, count, SHM cycles through) - - MAIN.sms_nreq (int, count, SMS allocator requests) - - MAIN.sms_nobj (int, count, SMS outstanding allocations) - - MAIN.sms_nbytes (int, count, SMS outstanding bytes) - - MAIN.sms_balloc (int, count, SMS bytes allocated) - - MAIN.sms_bfree (int, count, SMS bytes freed) - - MAIN.backend_req (int, count, Backend requests made) - - MAIN.n_vcl (int, count, Number of loaded) - - MAIN.n_vcl_avail (int, count, Number of VCLs) - - MAIN.n_vcl_discard (int, count, Number of discarded) - - MAIN.bans (int, count, Count of bans) - - MAIN.bans_completed (int, count, Number of bans) - - MAIN.bans_obj (int, count, Number of bans) - - MAIN.bans_req (int, count, Number of bans) - - MAIN.bans_added (int, count, Bans added) - - MAIN.bans_deleted (int, count, Bans deleted) - - MAIN.bans_tested (int, count, Bans tested against) - - MAIN.bans_obj_killed (int, count, Objects killed by) - - MAIN.bans_lurker_tested (int, count, Bans tested against) - - MAIN.bans_tests_tested (int, count, Ban tests tested) - - MAIN.bans_lurker_tests_tested (int, count, Ban tests tested) - - MAIN.bans_lurker_obj_killed (int, count, Objects killed by) - - MAIN.bans_dups (int, count, Bans superseded by) - - MAIN.bans_lurker_contention (int, count, Lurker gave way) - - MAIN.bans_persisted_bytes (int, count, Bytes used by) - - MAIN.bans_persisted_fragmentation (int, count, Extra bytes in) - - MAIN.n_purges (int, count, Number of purge) - - MAIN.n_obj_purged (int, count, Number of purged) - - MAIN.exp_mailed (int, count, Number of objects) - - MAIN.exp_received (int, count, Number of objects) - - MAIN.hcb_nolock (int, count, HCB Lookups without) - - MAIN.hcb_lock (int, count, HCB Lookups with) - - MAIN.hcb_insert (int, count, HCB Inserts) - - MAIN.esi_errors (int, count, ESI parse errors) - - MAIN.esi_warnings (int, count, ESI parse warnings) - - MAIN.vmods (int, count, Loaded VMODs) - - MAIN.n_gzip (int, count, Gzip operations) - - MAIN.n_gunzip (int, count, Gunzip operations) - - MAIN.vsm_free (int, count, Free VSM space) - - MAIN.vsm_used (int, count, Used VSM space) - - MAIN.vsm_cooling (int, count, Cooling VSM space) - - MAIN.vsm_overflow (int, count, Overflow VSM space) - - MAIN.vsm_overflowed (int, count, Overflowed VSM space) - - MGT.uptime (int, count, Management process uptime) - - MGT.child_start (int, count, Child process started) - - MGT.child_exit (int, count, Child process normal) - - MGT.child_stop (int, count, Child process unexpected) - - MGT.child_died (int, count, Child process died) - - MGT.child_dump (int, count, Child process core) - - MGT.child_panic (int, count, Child process panic) - - MEMPOOL.vbc.live (int, count, In use) - - MEMPOOL.vbc.pool (int, count, In Pool) - - MEMPOOL.vbc.sz_wanted (int, count, Size requested) - - MEMPOOL.vbc.sz_needed (int, count, Size allocated) - - MEMPOOL.vbc.allocs (int, count, Allocations ) - - MEMPOOL.vbc.frees (int, count, Frees ) - - MEMPOOL.vbc.recycle (int, count, Recycled from pool) - - MEMPOOL.vbc.timeout (int, count, Timed out from) - - MEMPOOL.vbc.toosmall (int, count, Too small to) - - MEMPOOL.vbc.surplus (int, count, Too many for) - - MEMPOOL.vbc.randry (int, count, Pool ran dry) - - MEMPOOL.busyobj.live (int, count, In use) - - MEMPOOL.busyobj.pool (int, count, In Pool) - - MEMPOOL.busyobj.sz_wanted (int, count, Size requested) - - MEMPOOL.busyobj.sz_needed (int, count, Size allocated) - - MEMPOOL.busyobj.allocs (int, count, Allocations ) - - MEMPOOL.busyobj.frees (int, count, Frees ) - - MEMPOOL.busyobj.recycle (int, count, Recycled from pool) - - MEMPOOL.busyobj.timeout (int, count, Timed out from) - - MEMPOOL.busyobj.toosmall (int, count, Too small to) - - MEMPOOL.busyobj.surplus (int, count, Too many for) - - MEMPOOL.busyobj.randry (int, count, Pool ran dry) - - MEMPOOL.req0.live (int, count, In use) - - MEMPOOL.req0.pool (int, count, In Pool) - - MEMPOOL.req0.sz_wanted (int, count, Size requested) - - MEMPOOL.req0.sz_needed (int, count, Size allocated) - - MEMPOOL.req0.allocs (int, count, Allocations ) - - MEMPOOL.req0.frees (int, count, Frees ) - - MEMPOOL.req0.recycle (int, count, Recycled from pool) - - MEMPOOL.req0.timeout (int, count, Timed out from) - - MEMPOOL.req0.toosmall (int, count, Too small to) - - MEMPOOL.req0.surplus (int, count, Too many for) - - MEMPOOL.req0.randry (int, count, Pool ran dry) - - MEMPOOL.sess0.live (int, count, In use) - - MEMPOOL.sess0.pool (int, count, In Pool) - - MEMPOOL.sess0.sz_wanted (int, count, Size requested) - - MEMPOOL.sess0.sz_needed (int, count, Size allocated) - - MEMPOOL.sess0.allocs (int, count, Allocations ) - - MEMPOOL.sess0.frees (int, count, Frees ) - - MEMPOOL.sess0.recycle (int, count, Recycled from pool) - - MEMPOOL.sess0.timeout (int, count, Timed out from) - - MEMPOOL.sess0.toosmall (int, count, Too small to) - - MEMPOOL.sess0.surplus (int, count, Too many for) - - MEMPOOL.sess0.randry (int, count, Pool ran dry) - - MEMPOOL.req1.live (int, count, In use) - - MEMPOOL.req1.pool (int, count, In Pool) - - MEMPOOL.req1.sz_wanted (int, count, Size requested) - - MEMPOOL.req1.sz_needed (int, count, Size allocated) - - MEMPOOL.req1.allocs (int, count, Allocations ) - - MEMPOOL.req1.frees (int, count, Frees ) - - MEMPOOL.req1.recycle (int, count, Recycled from pool) - - MEMPOOL.req1.timeout (int, count, Timed out from) - - MEMPOOL.req1.toosmall (int, count, Too small to) - - MEMPOOL.req1.surplus (int, count, Too many for) - - MEMPOOL.req1.randry (int, count, Pool ran dry) - - MEMPOOL.sess1.live (int, count, In use) - - MEMPOOL.sess1.pool (int, count, In Pool) - - MEMPOOL.sess1.sz_wanted (int, count, Size requested) - - MEMPOOL.sess1.sz_needed (int, count, Size allocated) - - MEMPOOL.sess1.allocs (int, count, Allocations ) - - MEMPOOL.sess1.frees (int, count, Frees ) - - MEMPOOL.sess1.recycle (int, count, Recycled from pool) - - MEMPOOL.sess1.timeout (int, count, Timed out from) - - MEMPOOL.sess1.toosmall (int, count, Too small to) - - MEMPOOL.sess1.surplus (int, count, Too many for) - - MEMPOOL.sess1.randry (int, count, Pool ran dry) - - SMA.s0.c_req (int, count, Allocator requests) - - SMA.s0.c_fail (int, count, Allocator failures) - - SMA.s0.c_bytes (int, count, Bytes allocated) - - SMA.s0.c_freed (int, count, Bytes freed) - - SMA.s0.g_alloc (int, count, Allocations outstanding) - - SMA.s0.g_bytes (int, count, Bytes outstanding) - - SMA.s0.g_space (int, count, Bytes available) - - SMA.Transient.c_req (int, count, Allocator requests) - - SMA.Transient.c_fail (int, count, Allocator failures) - - SMA.Transient.c_bytes (int, count, Bytes allocated) - - SMA.Transient.c_freed (int, count, Bytes freed) - - SMA.Transient.g_alloc (int, count, Allocations outstanding) - - SMA.Transient.g_bytes (int, count, Bytes outstanding) - - SMA.Transient.g_space (int, count, Bytes available) - - VBE.default(127.0.0.1,,8080).vcls (int, count, VCL references) - - VBE.default(127.0.0.1,,8080).happy (int, count, Happy health probes) - - VBE.default(127.0.0.1,,8080).bereq_hdrbytes (int, count, Request header bytes) - - VBE.default(127.0.0.1,,8080).bereq_bodybytes (int, count, Request body bytes) - - VBE.default(127.0.0.1,,8080).beresp_hdrbytes (int, count, Response header bytes) - - VBE.default(127.0.0.1,,8080).beresp_bodybytes (int, count, Response body bytes) - - VBE.default(127.0.0.1,,8080).pipe_hdrbytes (int, count, Pipe request header) - - VBE.default(127.0.0.1,,8080).pipe_out (int, count, Piped bytes to) - - VBE.default(127.0.0.1,,8080).pipe_in (int, count, Piped bytes from) - - LCK.sms.creat (int, count, Created locks) - - LCK.sms.destroy (int, count, Destroyed locks) - - LCK.sms.locks (int, count, Lock Operations) - - LCK.smp.creat (int, count, Created locks) - - LCK.smp.destroy (int, count, Destroyed locks) - - LCK.smp.locks (int, count, Lock Operations) - - LCK.sma.creat (int, count, Created locks) - - LCK.sma.destroy (int, count, Destroyed locks) - - LCK.sma.locks (int, count, Lock Operations) - - LCK.smf.creat (int, count, Created locks) - - LCK.smf.destroy (int, count, Destroyed locks) - - LCK.smf.locks (int, count, Lock Operations) - - LCK.hsl.creat (int, count, Created locks) - - LCK.hsl.destroy (int, count, Destroyed locks) - - LCK.hsl.locks (int, count, Lock Operations) - - LCK.hcb.creat (int, count, Created locks) - - LCK.hcb.destroy (int, count, Destroyed locks) - - LCK.hcb.locks (int, count, Lock Operations) - - LCK.hcl.creat (int, count, Created locks) - - LCK.hcl.destroy (int, count, Destroyed locks) - - LCK.hcl.locks (int, count, Lock Operations) - - LCK.vcl.creat (int, count, Created locks) - - LCK.vcl.destroy (int, count, Destroyed locks) - - LCK.vcl.locks (int, count, Lock Operations) - - LCK.sessmem.creat (int, count, Created locks) - - LCK.sessmem.destroy (int, count, Destroyed locks) - - LCK.sessmem.locks (int, count, Lock Operations) - - LCK.sess.creat (int, count, Created locks) - - LCK.sess.destroy (int, count, Destroyed locks) - - LCK.sess.locks (int, count, Lock Operations) - - LCK.wstat.creat (int, count, Created locks) - - LCK.wstat.destroy (int, count, Destroyed locks) - - LCK.wstat.locks (int, count, Lock Operations) - - LCK.herder.creat (int, count, Created locks) - - LCK.herder.destroy (int, count, Destroyed locks) - - LCK.herder.locks (int, count, Lock Operations) - - LCK.wq.creat (int, count, Created locks) - - LCK.wq.destroy (int, count, Destroyed locks) - - LCK.wq.locks (int, count, Lock Operations) - - LCK.objhdr.creat (int, count, Created locks) - - LCK.objhdr.destroy (int, count, Destroyed locks) - - LCK.objhdr.locks (int, count, Lock Operations) - - LCK.exp.creat (int, count, Created locks) - - LCK.exp.destroy (int, count, Destroyed locks) - - LCK.exp.locks (int, count, Lock Operations) - - LCK.lru.creat (int, count, Created locks) - - LCK.lru.destroy (int, count, Destroyed locks) - - LCK.lru.locks (int, count, Lock Operations) - - LCK.cli.creat (int, count, Created locks) - - LCK.cli.destroy (int, count, Destroyed locks) - - LCK.cli.locks (int, count, Lock Operations) - - LCK.ban.creat (int, count, Created locks) - - LCK.ban.destroy (int, count, Destroyed locks) - - LCK.ban.locks (int, count, Lock Operations) - - LCK.vbp.creat (int, count, Created locks) - - LCK.vbp.destroy (int, count, Destroyed locks) - - LCK.vbp.locks (int, count, Lock Operations) - - LCK.backend.creat (int, count, Created locks) - - LCK.backend.destroy (int, count, Destroyed locks) - - LCK.backend.locks (int, count, Lock Operations) - - LCK.vcapace.creat (int, count, Created locks) - - LCK.vcapace.destroy (int, count, Destroyed locks) - - LCK.vcapace.locks (int, count, Lock Operations) - - LCK.nbusyobj.creat (int, count, Created locks) - - LCK.nbusyobj.destroy (int, count, Destroyed locks) - - LCK.nbusyobj.locks (int, count, Lock Operations) - - LCK.busyobj.creat (int, count, Created locks) - - LCK.busyobj.destroy (int, count, Destroyed locks) - - LCK.busyobj.locks (int, count, Lock Operations) - - LCK.mempool.creat (int, count, Created locks) - - LCK.mempool.destroy (int, count, Destroyed locks) - - LCK.mempool.locks (int, count, Lock Operations) - - LCK.vxid.creat (int, count, Created locks) - - LCK.vxid.destroy (int, count, Destroyed locks) - - LCK.vxid.locks (int, count, Lock Operations) - - LCK.pipestat.creat (int, count, Created locks) - - LCK.pipestat.destroy (int, count, Destroyed locks) - - LCK.pipestat.locks (int, count, Lock Operations) + - MAIN.uptime (uint64, count, Child process uptime) + - MAIN.sess_conn (uint64, count, Sessions accepted) + - MAIN.sess_drop (uint64, count, Sessions dropped) + - MAIN.sess_fail (uint64, count, Session accept failures) + - MAIN.sess_pipe_overflow (uint64, count, Session pipe overflow) + - MAIN.client_req_400 (uint64, count, Client requests received,) + - MAIN.client_req_411 (uint64, count, Client requests received,) + - MAIN.client_req_413 (uint64, count, Client requests received,) + - MAIN.client_req_417 (uint64, count, Client requests received,) + - MAIN.client_req (uint64, count, Good client requests) + - MAIN.cache_hit (uint64, count, Cache hits) + - MAIN.cache_hitpass (uint64, count, Cache hits for) + - MAIN.cache_miss (uint64, count, Cache misses) + - MAIN.backend_conn (uint64, count, Backend conn. success) + - MAIN.backend_unhealthy (uint64, count, Backend conn. not) + - MAIN.backend_busy (uint64, count, Backend conn. too) + - MAIN.backend_fail (uint64, count, Backend conn. failures) + - MAIN.backend_reuse (uint64, count, Backend conn. reuses) + - MAIN.backend_toolate (uint64, count, Backend conn. was) + - MAIN.backend_recycle (uint64, count, Backend conn. recycles) + - MAIN.backend_retry (uint64, count, Backend conn. retry) + - MAIN.fetch_head (uint64, count, Fetch no body) + - MAIN.fetch_length (uint64, count, Fetch with Length) + - MAIN.fetch_chunked (uint64, count, Fetch chunked) + - MAIN.fetch_eof (uint64, count, Fetch EOF) + - MAIN.fetch_bad (uint64, count, Fetch bad T- E) + - MAIN.fetch_close (uint64, count, Fetch wanted close) + - MAIN.fetch_oldhttp (uint64, count, Fetch pre HTTP/1.1) + - MAIN.fetch_zero (uint64, count, Fetch zero len) + - MAIN.fetch_1xx (uint64, count, Fetch no body) + - MAIN.fetch_204 (uint64, count, Fetch no body) + - MAIN.fetch_304 (uint64, count, Fetch no body) + - MAIN.fetch_failed (uint64, count, Fetch failed (all) + - MAIN.fetch_no_thread (uint64, count, Fetch failed (no) + - MAIN.pools (uint64, count, Number of thread) + - MAIN.threads (uint64, count, Total number of) + - MAIN.threads_limited (uint64, count, Threads hit max) + - MAIN.threads_created (uint64, count, Threads created) + - MAIN.threads_destroyed (uint64, count, Threads destroyed) + - MAIN.threads_failed (uint64, count, Thread creation failed) + - MAIN.thread_queue_len (uint64, count, Length of session) + - MAIN.busy_sleep (uint64, count, Number of requests) + - MAIN.busy_wakeup (uint64, count, Number of requests) + - MAIN.sess_queued (uint64, count, Sessions queued for) + - MAIN.sess_dropped (uint64, count, Sessions dropped for) + - MAIN.n_object (uint64, count, object structs made) + - MAIN.n_vampireobject (uint64, count, unresurrected objects) + - MAIN.n_objectcore (uint64, count, objectcore structs made) + - MAIN.n_objecthead (uint64, count, objecthead structs made) + - MAIN.n_waitinglist (uint64, count, waitinglist structs made) + - MAIN.n_backend (uint64, count, Number of backends) + - MAIN.n_expired (uint64, count, Number of expired) + - MAIN.n_lru_nuked (uint64, count, Number of LRU) + - MAIN.n_lru_moved (uint64, count, Number of LRU) + - MAIN.losthdr (uint64, count, HTTP header overflows) + - MAIN.s_sess (uint64, count, Total sessions seen) + - MAIN.s_req (uint64, count, Total requests seen) + - MAIN.s_pipe (uint64, count, Total pipe sessions) + - MAIN.s_pass (uint64, count, Total pass- ed requests) + - MAIN.s_fetch (uint64, count, Total backend fetches) + - MAIN.s_synth (uint64, count, Total synthethic responses) + - MAIN.s_req_hdrbytes (uint64, count, Request header bytes) + - MAIN.s_req_bodybytes (uint64, count, Request body bytes) + - MAIN.s_resp_hdrbytes (uint64, count, Response header bytes) + - MAIN.s_resp_bodybytes (uint64, count, Response body bytes) + - MAIN.s_pipe_hdrbytes (uint64, count, Pipe request header) + - MAIN.s_pipe_in (uint64, count, Piped bytes from) + - MAIN.s_pipe_out (uint64, count, Piped bytes to) + - MAIN.sess_closed (uint64, count, Session Closed) + - MAIN.sess_pipeline (uint64, count, Session Pipeline) + - MAIN.sess_readahead (uint64, count, Session Read Ahead) + - MAIN.sess_herd (uint64, count, Session herd) + - MAIN.shm_records (uint64, count, SHM records) + - MAIN.shm_writes (uint64, count, SHM writes) + - MAIN.shm_flushes (uint64, count, SHM flushes due) + - MAIN.shm_cont (uint64, count, SHM MTX contention) + - MAIN.shm_cycles (uint64, count, SHM cycles through) + - MAIN.sms_nreq (uint64, count, SMS allocator requests) + - MAIN.sms_nobj (uint64, count, SMS outstanding allocations) + - MAIN.sms_nbytes (uint64, count, SMS outstanding bytes) + - MAIN.sms_balloc (uint64, count, SMS bytes allocated) + - MAIN.sms_bfree (uint64, count, SMS bytes freed) + - MAIN.backend_req (uint64, count, Backend requests made) + - MAIN.n_vcl (uint64, count, Number of loaded) + - MAIN.n_vcl_avail (uint64, count, Number of VCLs) + - MAIN.n_vcl_discard (uint64, count, Number of discarded) + - MAIN.bans (uint64, count, Count of bans) + - MAIN.bans_completed (uint64, count, Number of bans) + - MAIN.bans_obj (uint64, count, Number of bans) + - MAIN.bans_req (uint64, count, Number of bans) + - MAIN.bans_added (uint64, count, Bans added) + - MAIN.bans_deleted (uint64, count, Bans deleted) + - MAIN.bans_tested (uint64, count, Bans tested against) + - MAIN.bans_obj_killed (uint64, count, Objects killed by) + - MAIN.bans_lurker_tested (uint64, count, Bans tested against) + - MAIN.bans_tests_tested (uint64, count, Ban tests tested) + - MAIN.bans_lurker_tests_tested (uint64, count, Ban tests tested) + - MAIN.bans_lurker_obj_killed (uint64, count, Objects killed by) + - MAIN.bans_dups (uint64, count, Bans superseded by) + - MAIN.bans_lurker_contention (uint64, count, Lurker gave way) + - MAIN.bans_persisted_bytes (uint64, count, Bytes used by) + - MAIN.bans_persisted_fragmentation (uint64, count, Extra bytes in) + - MAIN.n_purges (uint64, count, Number of purge) + - MAIN.n_obj_purged (uint64, count, Number of purged) + - MAIN.exp_mailed (uint64, count, Number of objects) + - MAIN.exp_received (uint64, count, Number of objects) + - MAIN.hcb_nolock (uint64, count, HCB Lookups without) + - MAIN.hcb_lock (uint64, count, HCB Lookups with) + - MAIN.hcb_insert (uint64, count, HCB Inserts) + - MAIN.esi_errors (uint64, count, ESI parse errors) + - MAIN.esi_warnings (uint64, count, ESI parse warnings) + - MAIN.vmods (uint64, count, Loaded VMODs) + - MAIN.n_gzip (uint64, count, Gzip operations) + - MAIN.n_gunzip (uint64, count, Gunzip operations) + - MAIN.vsm_free (uint64, count, Free VSM space) + - MAIN.vsm_used (uint64, count, Used VSM space) + - MAIN.vsm_cooling (uint64, count, Cooling VSM space) + - MAIN.vsm_overflow (uint64, count, Overflow VSM space) + - MAIN.vsm_overflowed (uint64, count, Overflowed VSM space) + - MGT.uptime (uint64, count, Management process uptime) + - MGT.child_start (uint64, count, Child process started) + - MGT.child_exit (uint64, count, Child process normal) + - MGT.child_stop (uint64, count, Child process unexpected) + - MGT.child_died (uint64, count, Child process died) + - MGT.child_dump (uint64, count, Child process core) + - MGT.child_panic (uint64, count, Child process panic) + - MEMPOOL.vbc.live (uint64, count, In use) + - MEMPOOL.vbc.pool (uint64, count, In Pool) + - MEMPOOL.vbc.sz_wanted (uint64, count, Size requested) + - MEMPOOL.vbc.sz_needed (uint64, count, Size allocated) + - MEMPOOL.vbc.allocs (uint64, count, Allocations ) + - MEMPOOL.vbc.frees (uint64, count, Frees ) + - MEMPOOL.vbc.recycle (uint64, count, Recycled from pool) + - MEMPOOL.vbc.timeout (uint64, count, Timed out from) + - MEMPOOL.vbc.toosmall (uint64, count, Too small to) + - MEMPOOL.vbc.surplus (uint64, count, Too many for) + - MEMPOOL.vbc.randry (uint64, count, Pool ran dry) + - MEMPOOL.busyobj.live (uint64, count, In use) + - MEMPOOL.busyobj.pool (uint64, count, In Pool) + - MEMPOOL.busyobj.sz_wanted (uint64, count, Size requested) + - MEMPOOL.busyobj.sz_needed (uint64, count, Size allocated) + - MEMPOOL.busyobj.allocs (uint64, count, Allocations ) + - MEMPOOL.busyobj.frees (uint64, count, Frees ) + - MEMPOOL.busyobj.recycle (uint64, count, Recycled from pool) + - MEMPOOL.busyobj.timeout (uint64, count, Timed out from) + - MEMPOOL.busyobj.toosmall (uint64, count, Too small to) + - MEMPOOL.busyobj.surplus (uint64, count, Too many for) + - MEMPOOL.busyobj.randry (uint64, count, Pool ran dry) + - MEMPOOL.req0.live (uint64, count, In use) + - MEMPOOL.req0.pool (uint64, count, In Pool) + - MEMPOOL.req0.sz_wanted (uint64, count, Size requested) + - MEMPOOL.req0.sz_needed (uint64, count, Size allocated) + - MEMPOOL.req0.allocs (uint64, count, Allocations ) + - MEMPOOL.req0.frees (uint64, count, Frees ) + - MEMPOOL.req0.recycle (uint64, count, Recycled from pool) + - MEMPOOL.req0.timeout (uint64, count, Timed out from) + - MEMPOOL.req0.toosmall (uint64, count, Too small to) + - MEMPOOL.req0.surplus (uint64, count, Too many for) + - MEMPOOL.req0.randry (uint64, count, Pool ran dry) + - MEMPOOL.sess0.live (uint64, count, In use) + - MEMPOOL.sess0.pool (uint64, count, In Pool) + - MEMPOOL.sess0.sz_wanted (uint64, count, Size requested) + - MEMPOOL.sess0.sz_needed (uint64, count, Size allocated) + - MEMPOOL.sess0.allocs (uint64, count, Allocations ) + - MEMPOOL.sess0.frees (uint64, count, Frees ) + - MEMPOOL.sess0.recycle (uint64, count, Recycled from pool) + - MEMPOOL.sess0.timeout (uint64, count, Timed out from) + - MEMPOOL.sess0.toosmall (uint64, count, Too small to) + - MEMPOOL.sess0.surplus (uint64, count, Too many for) + - MEMPOOL.sess0.randry (uint64, count, Pool ran dry) + - MEMPOOL.req1.live (uint64, count, In use) + - MEMPOOL.req1.pool (uint64, count, In Pool) + - MEMPOOL.req1.sz_wanted (uint64, count, Size requested) + - MEMPOOL.req1.sz_needed (uint64, count, Size allocated) + - MEMPOOL.req1.allocs (uint64, count, Allocations ) + - MEMPOOL.req1.frees (uint64, count, Frees ) + - MEMPOOL.req1.recycle (uint64, count, Recycled from pool) + - MEMPOOL.req1.timeout (uint64, count, Timed out from) + - MEMPOOL.req1.toosmall (uint64, count, Too small to) + - MEMPOOL.req1.surplus (uint64, count, Too many for) + - MEMPOOL.req1.randry (uint64, count, Pool ran dry) + - MEMPOOL.sess1.live (uint64, count, In use) + - MEMPOOL.sess1.pool (uint64, count, In Pool) + - MEMPOOL.sess1.sz_wanted (uint64, count, Size requested) + - MEMPOOL.sess1.sz_needed (uint64, count, Size allocated) + - MEMPOOL.sess1.allocs (uint64, count, Allocations ) + - MEMPOOL.sess1.frees (uint64, count, Frees ) + - MEMPOOL.sess1.recycle (uint64, count, Recycled from pool) + - MEMPOOL.sess1.timeout (uint64, count, Timed out from) + - MEMPOOL.sess1.toosmall (uint64, count, Too small to) + - MEMPOOL.sess1.surplus (uint64, count, Too many for) + - MEMPOOL.sess1.randry (uint64, count, Pool ran dry) + - SMA.s0.c_req (uint64, count, Allocator requests) + - SMA.s0.c_fail (uint64, count, Allocator failures) + - SMA.s0.c_bytes (uint64, count, Bytes allocated) + - SMA.s0.c_freed (uint64, count, Bytes freed) + - SMA.s0.g_alloc (uint64, count, Allocations outstanding) + - SMA.s0.g_bytes (uint64, count, Bytes outstanding) + - SMA.s0.g_space (uint64, count, Bytes available) + - SMA.Transient.c_req (uint64, count, Allocator requests) + - SMA.Transient.c_fail (uint64, count, Allocator failures) + - SMA.Transient.c_bytes (uint64, count, Bytes allocated) + - SMA.Transient.c_freed (uint64, count, Bytes freed) + - SMA.Transient.g_alloc (uint64, count, Allocations outstanding) + - SMA.Transient.g_bytes (uint64, count, Bytes outstanding) + - SMA.Transient.g_space (uint64, count, Bytes available) + - VBE.default(127.0.0.1,,8080).vcls (uint64, count, VCL references) + - VBE.default(127.0.0.1,,8080).happy (uint64, count, Happy health probes) + - VBE.default(127.0.0.1,,8080).bereq_hdrbytes (uint64, count, Request header bytes) + - VBE.default(127.0.0.1,,8080).bereq_bodybytes (uint64, count, Request body bytes) + - VBE.default(127.0.0.1,,8080).beresp_hdrbytes (uint64, count, Response header bytes) + - VBE.default(127.0.0.1,,8080).beresp_bodybytes (uint64, count, Response body bytes) + - VBE.default(127.0.0.1,,8080).pipe_hdrbytes (uint64, count, Pipe request header) + - VBE.default(127.0.0.1,,8080).pipe_out (uint64, count, Piped bytes to) + - VBE.default(127.0.0.1,,8080).pipe_in (uint64, count, Piped bytes from) + - LCK.sms.creat (uint64, count, Created locks) + - LCK.sms.destroy (uint64, count, Destroyed locks) + - LCK.sms.locks (uint64, count, Lock Operations) + - LCK.smp.creat (uint64, count, Created locks) + - LCK.smp.destroy (uint64, count, Destroyed locks) + - LCK.smp.locks (uint64, count, Lock Operations) + - LCK.sma.creat (uint64, count, Created locks) + - LCK.sma.destroy (uint64, count, Destroyed locks) + - LCK.sma.locks (uint64, count, Lock Operations) + - LCK.smf.creat (uint64, count, Created locks) + - LCK.smf.destroy (uint64, count, Destroyed locks) + - LCK.smf.locks (uint64, count, Lock Operations) + - LCK.hsl.creat (uint64, count, Created locks) + - LCK.hsl.destroy (uint64, count, Destroyed locks) + - LCK.hsl.locks (uint64, count, Lock Operations) + - LCK.hcb.creat (uint64, count, Created locks) + - LCK.hcb.destroy (uint64, count, Destroyed locks) + - LCK.hcb.locks (uint64, count, Lock Operations) + - LCK.hcl.creat (uint64, count, Created locks) + - LCK.hcl.destroy (uint64, count, Destroyed locks) + - LCK.hcl.locks (uint64, count, Lock Operations) + - LCK.vcl.creat (uint64, count, Created locks) + - LCK.vcl.destroy (uint64, count, Destroyed locks) + - LCK.vcl.locks (uint64, count, Lock Operations) + - LCK.sessmem.creat (uint64, count, Created locks) + - LCK.sessmem.destroy (uint64, count, Destroyed locks) + - LCK.sessmem.locks (uint64, count, Lock Operations) + - LCK.sess.creat (uint64, count, Created locks) + - LCK.sess.destroy (uint64, count, Destroyed locks) + - LCK.sess.locks (uint64, count, Lock Operations) + - LCK.wstat.creat (uint64, count, Created locks) + - LCK.wstat.destroy (uint64, count, Destroyed locks) + - LCK.wstat.locks (uint64, count, Lock Operations) + - LCK.herder.creat (uint64, count, Created locks) + - LCK.herder.destroy (uint64, count, Destroyed locks) + - LCK.herder.locks (uint64, count, Lock Operations) + - LCK.wq.creat (uint64, count, Created locks) + - LCK.wq.destroy (uint64, count, Destroyed locks) + - LCK.wq.locks (uint64, count, Lock Operations) + - LCK.objhdr.creat (uint64, count, Created locks) + - LCK.objhdr.destroy (uint64, count, Destroyed locks) + - LCK.objhdr.locks (uint64, count, Lock Operations) + - LCK.exp.creat (uint64, count, Created locks) + - LCK.exp.destroy (uint64, count, Destroyed locks) + - LCK.exp.locks (uint64, count, Lock Operations) + - LCK.lru.creat (uint64, count, Created locks) + - LCK.lru.destroy (uint64, count, Destroyed locks) + - LCK.lru.locks (uint64, count, Lock Operations) + - LCK.cli.creat (uint64, count, Created locks) + - LCK.cli.destroy (uint64, count, Destroyed locks) + - LCK.cli.locks (uint64, count, Lock Operations) + - LCK.ban.creat (uint64, count, Created locks) + - LCK.ban.destroy (uint64, count, Destroyed locks) + - LCK.ban.locks (uint64, count, Lock Operations) + - LCK.vbp.creat (uint64, count, Created locks) + - LCK.vbp.destroy (uint64, count, Destroyed locks) + - LCK.vbp.locks (uint64, count, Lock Operations) + - LCK.backend.creat (uint64, count, Created locks) + - LCK.backend.destroy (uint64, count, Destroyed locks) + - LCK.backend.locks (uint64, count, Lock Operations) + - LCK.vcapace.creat (uint64, count, Created locks) + - LCK.vcapace.destroy (uint64, count, Destroyed locks) + - LCK.vcapace.locks (uint64, count, Lock Operations) + - LCK.nbusyobj.creat (uint64, count, Created locks) + - LCK.nbusyobj.destroy (uint64, count, Destroyed locks) + - LCK.nbusyobj.locks (uint64, count, Lock Operations) + - LCK.busyobj.creat (uint64, count, Created locks) + - LCK.busyobj.destroy (uint64, count, Destroyed locks) + - LCK.busyobj.locks (uint64, count, Lock Operations) + - LCK.mempool.creat (uint64, count, Created locks) + - LCK.mempool.destroy (uint64, count, Destroyed locks) + - LCK.mempool.locks (uint64, count, Lock Operations) + - LCK.vxid.creat (uint64, count, Created locks) + - LCK.vxid.destroy (uint64, count, Destroyed locks) + - LCK.vxid.locks (uint64, count, Lock Operations) + - LCK.pipestat.creat (uint64, count, Created locks) + - LCK.pipestat.destroy (uint64, count, Destroyed locks) + - LCK.pipestat.locks (uint64, count, Lock Operations) ### Tags: diff --git a/plugins/inputs/varnish/varnish_test.go b/plugins/inputs/varnish/varnish_test.go index fd5d3d448..6ced1cf58 100644 --- a/plugins/inputs/varnish/varnish_test.go +++ b/plugins/inputs/varnish/varnish_test.go @@ -84,7 +84,7 @@ func TestFieldConfig(t *testing.T) { }() varnishStat = fakeVarnishStat(fullOutput) - expect := map[string]int{ + expect := map[string]uint64{ "all": 293, "": 0, // default "MAIN.uptime": 1,