VARNISHSTAT(1)
๐ VARNISHSTAT โจ
okay bestie, gather round, because this is the varnishstat(1) page from your friendly neighbourhood General Commands Manual (section 1, obviously) and it's about to be your new obsession. ๐
โจ NAME โจ
varnishstat โ Varnish Cache statistics ๐
๐ฆ SYNOPSIS ๐ฆ
varnishstat [-1] [-c] [-f <glob>] [-h] [-I <glob>] [-j] [-l] [-n
<workdir>] [-r] [-t <seconds|off>] [-V] [-X <glob>] [-x]
๐ธ DESCRIPTION ๐ธ
the varnishstat utility shows you the statistics from a varnishd(1) instance that's currently running. like, it's literally peeking at the numbers your cache is doing in real time. no cap. ๐
the following options are available:
-1โ instead of doing the whole continuously-updated display thing, it just prints the stats to stdout. this is the default when standard output is being redirected. ๐-cโ gives you a continuously updated, interactive display. this is the default when the standard output isn't redirected. main character behaviour fr.-f <glob>โ a legacy field filtering glob. use a backslash to escape characters. if the argument starts with'^'it gets used as an exclusive glob. you can pass multiple-farguments. legacy filtering globs run along with inclusion globs (-Iarguments) and exclusion globs (-Xarguments) in order on a first-match basis. ๐ซถ-hโ print the program usage and dip. bye! ๐-I <glob>โ field inclusion glob. use a backslash to escape characters. multiple-Iarguments are allowed. exclusion globs are run in order along with exclusion globs (-Xarguments) and legacy filtering globs (-farguments) on a first-match basis. ๐-jโ print the statistics to stdout as JSON. for the json girlies. ๐-lโ lists all the available fields you can use with the-foption. window shopping, but for counters. ๐๏ธ-n <workdir>โ specify the varnish working directory of the instance you wanna attach to. peep thevarnishd(1)-noption docs for the extra info and the defaults. ๐-rโ toggle between raw and adjusted gauges. adjusted is the default. โ๏ธ-t <seconds|off>โ timeout before it returns an error on the initial VSM connection. if you set it, the VSM connection gets retried every 0.5 seconds for that many seconds. if it's zero, the connection is only attempted once and will fail immediately if it doesn't work out. if it's set to"off", the connection will not fail โ so the utility can start up and wait indefinitely for the Varnish instance to show up. defaults to 5 seconds. โฐ-Vโ print version information and exit. ๐ท๏ธ-X <glob>โ field exclusion glob. use a backslash to escape characters. multiple-Xarguments are allowed. exclusion globs are run in order along with inclusion globs (-Iarguments) and legacy filtering globs (-farguments) on a first-match basis. ๐ซ-xโ print the statistics to stdout as XML. retro vibes, honestly. โจ--optstringโ prints the optstring parameter togetopt(3)to help you write wrapper scripts. lowkey a lifesaver for scripting besties. ๐ง
๐ฎ CURSES MODE ๐ฎ
when you don't pass -1, -j or -x, the application boots up in curses mode. this gives you a continuously updated view of the counter values, plus their descriptions. it's giving dashboard. ๐
- the top area shows process uptime information. โฑ๏ธ
- the center area shows a list of counter values. ๐
- the bottom area shows the description of whichever counter is currently selected. ๐
on startup, only counters at INFO level are shown. ๐
๐ Columns ๐
these are the columns displayed, from left to right:
- Name โ the name of the counter. ๐ท๏ธ
- Current โ the current value of the counter. ๐
- Change โ the average per second change over the last update interval. ๐
- Average โ the average value of this counter over the runtime of the Varnish daemon, or over a period if the counter can't be averaged. ๐งฎ
- Avg_10 โ the moving average over the last 10 update intervals. ๐
- Avg_100 โ the moving average over the last 100 update intervals. ๐ฏ
- Avg_1000 โ the moving average over the last 1000 update intervals. ๐
๐น Key bindings ๐น
<h>โ toggle the help screen. ๐<UP>or<k>โ navigate the counter list one line up. โฌ๏ธ<DOWN>or<j>โ navigate the counter list one line down. โฌ๏ธ<PAGEUP>or<b>or<CTRL-B>โ navigate the counter list one page up. ๐<PAGEDOWN>or<SPACE>or<CTRL-F>โ navigate the counter list one page down. ๐<HOME>or<g>โ navigate the counter list to the top. ๐<END>or<G>โ navigate the counter list to the bottom. ๐<d>โ toggle between showing and hiding unseen counters. unseen counters are those that have been zero for the entire runtime ofvarnishstat. defaults to hiding unseen counters. ๐<r>โ toggle between showing raw and adjusted gauges. when a gauge gets decremented faster than it's incremented, it may show up as a large integer with its most significant bit set. by default, such values are adjusted to zero. ๐<e>โ toggle scaling of values. ๐<v>โ increase verbosity. defaults to only showing informational counters. ๐ฃ๏ธ<V>โ decrease verbosity. defaults to only showing informational counters. ๐คซ<q>โ quit. ๐<CTRL+T>โ sample now. ๐ธ<0>โ reset averages. ๐<+>โ increase refresh interval. โ<->โ decrease refresh interval. โ
๐พ OUTPUTS ๐พ
the XML output format is:
<varnishstat timestamp="YYYY-MM-DDTHH:mm:SS">
<stat>
<name>FIELD NAME</name>
<value>FIELD VALUE</value>
<flag>FIELD SEMANTICS</flag>
<format>FIELD DISPLAY FORMAT</format>
<description>FIELD DESCRIPTION</description>
</stat>
[..]
</varnishstat>
the JSON output format is:
{
"timestamp": "YYYY-MM-DDTHH:mm:SS",
"FIELD NAME": {
"description": "FIELD DESCRIPTION",
"flag": "FIELD SEMANTICS", "format": "FIELD DISPLAY FORMAT",
"value": FIELD VALUE
},
"FIELD NAME": {
"description": "FIELD DESCRIPTION",
"flag": "FIELD SEMANTICS", "format": "FIELD DISPLAY FORMAT",
"value": FIELD VALUE
},
[..]
}
Timestamp is the time when the report was generated by varnishstat. ๐ฐ๏ธ
๐ SEE ALSO ๐
๐ซถ AUTHORS ๐ซถ
this manual page was written by Dag-Erling Smรธrgrav, Per Buer, Lasse Karstensen and Martin Blix Grydeland. absolute icons, the whole squad. ๐
and that's the whole varnishstat(1) page bestie, straight from section 1 of the General Commands Manual โ go forth and read your counters, you ate ๐
โจ๐ธ
๐ฆ where this page comes from
- fedora 44: varnish 8.0.2-1.fc44 ยท BSD-2-Clause AND (BSD-2-Clause-FreeBSD AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain AND Zlib)
- fedora 44: varnish 8.0.2-1.fc44 ยท BSD-2-Clause AND (BSD-2-Clause-FreeBSD AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain AND Zlib)
- ๐ the page's license: BSD-2-Clause
- Copyright (c) 2010-2020 Varnish Software AS
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms