gunk-dev/the-valley

telemetry.txt

source69d7baef1f04main's published tip history
2.4 KiB
1usage: valley telemetry [--remote <remote>] [--json] <operation> [flags]
2
3 sources every source the host declares, and its state:
4 disabled, unavailable, failed, stale, active or
5 idle, with its units, its records and how far its
6 journal reaches
7 snapshot sources, with each producer's exported state and
8 its open and latest runs
9 read [--source <name>] [--since <cursor>] [--limit <n>] [--logs]
10 records after the cursor (default: the newest
11 --limit, 200, at most 1000); a source's systemd
12 lifecycle from the journal; with --logs, its own
13 output and the tail of its build logs, marked
14 untrusted
15 follow [--source <name>] [--since <cursor>] [--seconds <n>] [--logs]
16 records as they are stored, and with --logs build
17 output as it is written, for --seconds (default
18 60, at most 300); ends with a cursor to resume from
19 flush send this workstation's spooled records now
20
21Reading needs a key whose principal holds the host's observe grant. The
22remote is the checkout's valley.telemetry.remote, else origin, or the one
23--remote names (a remote, an ssh URL, or user@host:path); its URL is read
24and never run. --json prints the valley-telemetry/v1 answer lines as they
25come. A gap, a cut-short answer or an error is said; an answer that does
26not end exits 1.
27
28With `git config valley.telemetry true`, every valley command records a
29command record: its verb (and knot's or telemetry's subverb), the names of
30the flags it was given, its project, its exit status and its wall time,
31and for pending and status the milliseconds and processes each phase took.
32It never records an argument's value, a path, a title or a body. Every
33approval attempt, from approve or from review, also records its steps and
34its checks' progress. Records go to an owner-only spool for the
35destination the checkout's telemetry remote names, under
36$XDG_STATE_HOME/valley/telemetry/spools. A background flusher sends each
37spool to its own destination, with the report grant; flush does the same
38now, and --remote limits it to that remote's spool. Telemetry never fails
39or holds up a command, and changes nothing it prints.