Commit 3af02e67 authored by Federico G. Schwindt's avatar Federico G. Schwindt Committed by Lasse Karstensen

Sort options, fix spelling and update formats

parent 4c039901
...@@ -65,7 +65,7 @@ CURSES MODE ...@@ -65,7 +65,7 @@ CURSES MODE
=========== ===========
When neither -1, -j or -x options are given, the application starts up When neither -1, -j or -x options are given, the application starts up
in curses mode. This shows a continously updated view of the counter in curses mode. This shows a continuously updated view of the counter
values, along with their description. values, along with their description.
The top area shows process uptime information. The top area shows process uptime information.
...@@ -119,17 +119,17 @@ The following keys control the interactive display: ...@@ -119,17 +119,17 @@ The following keys control the interactive display:
<PAGEDOWN> or <SPACE> <PAGEDOWN> or <SPACE>
Navigate the counter list one page down. 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.
<g> <g>
Go to the top of the counter list. Go to the top of the counter list.
<G> <G>
Go to the bottom of the counter list. Go to the bottom of the counter list.
<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.
<v> <v>
Cycle through the verbosity levels. Defaults to only showing Cycle through the verbosity levels. Defaults to only showing
informational counters. informational counters.
...@@ -145,11 +145,17 @@ XML Output ...@@ -145,11 +145,17 @@ XML Output
When using the -x option, the output is:: When using the -x option, the output is::
<stat> <varnishstat timestamp="YYYY-MM-DDTHH:mm:SS">
<name>FIELD NAME</name> <stat>
<value>FIELD VALUE</value> <type>FIELD TYPE</type>
<description>FIELD DESCRIPTION</description> <ident>FIELD IDENT</ident>
</stat> <name>FIELD NAME</name>
<value>FIELD VALUE</value>
<flag>FIELD FORMAT</flag>
<description>FIELD DESCRIPTION</description>
</stat>
[..]
</varnishstat>
JSON OUTPUT JSON OUTPUT
=========== ===========
...@@ -158,24 +164,15 @@ With -j the output format is:: ...@@ -158,24 +164,15 @@ With -j the output format is::
{ {
"timestamp": "YYYY-MM-DDTHH:mm:SS", "timestamp": "YYYY-MM-DDTHH:mm:SS",
"client_conn": { "FIELD NAME": {"type": "FIELD TYPE", "ident": "FIELD IDENT", "value": FIELD VALUE, "flag": "FIELD FORMAT", "description": "FIELD DESCRIPTION"},
"value": 0, "flag": "a",
"description": "Client connections accepted"
},
"client_drop": {
"value": 0, "flag": "a",
"description": "Connection dropped, no sess/wrk"
},
"LCK.backend.creat": {
"type": "LCK", "ident": "backend", "value": 1,
"flag": "a", "description": "Created locks"
},
[..] [..]
} }
Timestamp is the time when the report was generated by varnishstat. Type and ident are optional. Timestamp is the time when the report was
generated by varnishstat.
Repeated output with -1, -x or -j will have a single empty line (\\n) between each block of output. Repeated output with -1, -x or -j will have a single empty line (\\n)
between each block of output.
SEE ALSO SEE ALSO
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment