varnishstat - Varnish Cache statistics
varnishstat [-1] [-f <glob>] [-h] [-j] [-l] [-n <name>] [-N <filename>] [-t <seconds|off>] [-V] [-x]
The varnishstat utility displays statistics from a running varnishd(1) instance. The following options are available: -1 Instead of presenting a continuously updated display, print the statistics to stdout. -f <glob> Field inclusion glob. Use backslash to escape characters. If the argument starts with '^' it is used as an exclusion glob. Multiple -f arguments may be given, and they will be applied in order. -h Print program usage and exit -j Print statistics to stdout as JSON. -l Lists the available fields to use with the -f option. -n <name> Specify the name of the varnishd instance to get logs from. If -n is not specified, the host name is used. -N <filename> Specify the filename of a stale VSM instance. When using this option the abandonment checking is disabled. -t <seconds|off> Timeout before returning error on initial VSM connection. If set the VSM connection is retried every 0.5 seconds for this many seconds. If zero the connection is attempted only once and will fail immediately if unsuccessful. If set to "off", the connection will not fail, allowing the utility to start and wait indefinetely for the Varnish instance to appear. Defaults to 5 seconds. -V Print version information and exit. -x Print statistics to stdout as XML.
When neither -1, -j or -x options are given, the application starts up
in curses mode. This shows a continuously updated view of the counter
values, along with their description.
The top area shows process uptime information.
The center area shows a list of counter values.
The bottom area shows the description of the currently selected
counter.
Columns
The following columns are 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 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
The following keys control the interactive display:
<UP> Navigate the counter list one line up.
<DOWN> Navigate the counter list one line down.
<PAGEUP> or <b>
Navigate the counter list one page up.
<PAGEDOWN> or <SPACE>
Navigate the counter list one page down.
<d> Toggle between showing and hiding unseen counters. Unseen
counters are those that has been zero for the entire runtime of
varnishstat. Defaults to hide unseen counters.
<e> Toggle scaling of values.
<g> Go to the top of the counter list.
<G> Go to the bottom of the counter list.
<v> Cycle through the verbosity levels. Defaults to only showing
informational counters.
<q> Quit.
<CTRL+T>
Sample now.
The XML output format is:
<varnishstat timestamp="YYYY-MM-DDTHH:mm:SS">
<stat>
<type>FIELD TYPE</type>
<ident>FIELD IDENT</ident>
<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",
"type": "FIELD TYPE", "ident": "FIELD IDENT", "flag": "FIELD SEMANTICS", "format": "FIELD DISPLAY FORMAT",
"value": FIELD VALUE
},
"FIELD NAME": {
"description": "FIELD DESCRIPTION",
"type": "FIELD TYPE", "ident": "FIELD IDENT", "flag": "FIELD SEMANTICS", "format": "FIELD DISPLAY FORMAT",
"value": FIELD VALUE
},
[..]
}
Type and ident are optional. Timestamp is the time when the report was
generated by varnishstat.
* varnishd(1) * varnishhist(1) * varnishlog(1) * varnishncsa(1) * varnishtop(1) * curses(3) * varnish-counters(7)
This manual page was written by Dag-Erling Smrgrav, Per Buer, Lasse
Karstensen and Martin Blix Grydeland.
VARNISHSTAT(1)
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.