vinylstat(1)

๐Ÿ“ฆ
version 9.1.0 ยท 3 versions
, in arch rolling, nixpkgs unstable

๐Ÿ’ฟ vinylstat(1) โ€” Vinyl Cache statistics ๐Ÿ’ฟ

okay so this is vinylstat(1) from the General Commands Manual, and itโ€™s literally here to give you the stats tea on a running vinyld(1) instance. Bestie, itโ€™s giving observability with main character energy. ๐Ÿ’…


๐ŸŒธ NAME ๐ŸŒธ

vinylstat โ€” Vinyl Cache statistics.

โœจ SYNOPSIS โœจ

vinylstat [-1] [-c] [-f <glob>] [-h] [-I <glob>] [-j] [-l] [-n
<workdir>] [-r] [-t <seconds|off>] [-V] [-X <glob>] [-x]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

The vinylstat utility displays statistics from a running vinyld(1) instance. No cap, itโ€™s your little stats bestie for the Vinyl Cache.

The following options are available โ€” every single one, no skipping:

  • -1 โ€” Instead of presenting a continuously updated display, print the statistics to stdout. This is the default when standard output is being redirected.
  • -c โ€” Presents a continuously updated, interactive display. This is the default when the standard output isnโ€™t redirected.
  • -f <glob> โ€” Legacy field filtering glob. Use backslash to escape characters. If the argument starts with ^ it is used as an exclusive glob. Multiple -f arguments may be given. Legacy filtering globs are run along with inclusion globs (-I arguments) and exclusion globs (-X arguments) in order on a first-match basis.
  • -h โ€” Print program usage and exit.
  • -I <glob> โ€” Field inclusion glob. Use backslash to escape characters. Multiple -I arguments may be given. Exclusion globs are run in order along with exclusion globs (-X arguments) and legacy filtering globs (-f arguments) on a first-match basis.
  • -j โ€” Print statistics to stdout as JSON.
  • -l โ€” Lists the available fields to use with the -f option.
  • -n <workdir> โ€” Specify the vinyl working directory of the instance to attach to. See vinyld(1) -n option documentation for additional information and defaults.
  • -r โ€” Toggle raw or adjusted gauges, adjusted is the default.
  • -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 indefinitely for the vinyld instance to appear. Defaults to 5 seconds.
  • -V โ€” Print version information and exit.
  • -X <glob> โ€” Field exclusion glob. Use backslash to escape characters. Multiple -X arguments may be given. Exclusion globs are run in order along with inclusion globs (-I arguments) and legacy filtering globs (-f arguments) on a first-match basis.
  • -x โ€” Print statistics to stdout as XML.
  • --optstring โ€” Print the optstring parameter to getopt(3) to help writing wrapper scripts.

๐Ÿงš CURSES MODE ๐Ÿงš

When neither -1, -j nor -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. Itโ€™s honestly kind of iconic.

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.

On startup, only counters at INFO level are shown.

๐ŸŒˆ 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 vinyld 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 ๐ŸŽฎ

  • <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 of vinylstat. Defaults to hide unseen counters.
  • <r> โ€” Toggle between showing raw and adjusted gauges. When a gauge is decremented faster than it is incremented, it may appear 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:

          <vinylstat 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>
            [..]
          </vinylstat>

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 vinylstat.

๐Ÿ”— SEE ALSO ๐Ÿ”—

๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

This manual page was written by Dag-Erling Smรธrgrav, Per Buer, Lasse Karstensen and Martin Blix Grydeland.


Cute sign-off time: source = General Commands Manual, version = vinylstat(1), date = not listed on the original page. So thatโ€™s the whole vinylstat(1) page, bestie โ€” go check those vinyl stats and slay ๐ŸŽ€โœจ๐Ÿ’…

๐Ÿ“ฆ where this page comes from