tailscale/cmd/tailscale/cli
Brad Fitzpatrick 36b1df1241 cmd/tailscale/cli: add --watch flag to "debug metrics" subcommand
This adds a new --watch flag that prints out a block of metric changes
every second, if anything changed.

Example output:

magicsock_disco_recv_ping    +1 => 254
magicsock_disco_recv_pong    +1 => 218
magicsock_disco_recv_udp     +2 => 472
magicsock_disco_send_udp     +2 => 536
magicsock_disco_sent_udp     +2 => 536
magicsock_recv_data_ipv6     +1 => 82
magicsock_send_data          +1 => 86
magicsock_send_udp           +3 => 620

magicsock_recv_data_ipv6    +1 => 83
magicsock_send_data         +1 => 87
magicsock_send_udp          +1 => 621

magicsock_disco_recv_ping    +1 => 255
magicsock_disco_recv_pong    +1 => 219
magicsock_disco_recv_udp     +2 => 474
magicsock_disco_send_udp     +2 => 538
magicsock_disco_sent_udp     +2 => 538
magicsock_recv_data_ipv6     +1 => 84
magicsock_send_data          +1 => 88
magicsock_send_udp           +3 => 624

magicsock_recv_data_ipv6    +1 => 85
magicsock_send_data         +1 => 89
magicsock_send_udp          +1 => 625

controlclient_map_response_map          +1 => 207
controlclient_map_response_map_delta    +1 => 204
controlclient_map_response_message      +1 => 275
magicsock_disco_recv_ping               +3 => 258
magicsock_disco_recv_pong               +2 => 221
magicsock_disco_recv_udp                +5 => 479
magicsock_disco_send_derp               +1 => 6
magicsock_disco_send_udp                +7 => 545
magicsock_disco_sent_derp               +1 => 6
magicsock_disco_sent_udp                +7 => 545
magicsock_recv_data_ipv6                +1 => 86
magicsock_send_data                     +1 => 90
magicsock_send_derp                     +1 => 12
magicsock_send_derp_queued              +1 => 12
magicsock_send_udp                      +8 => 633

Updates #3307

Change-Id: I5ac2511e3ad24fa1e6ea958c3946fecebe4f79a7
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-11-16 13:48:21 -08:00
..
auth-redirect.html cmd/tailscale/web: add support for QNAP 2021-06-10 19:06:05 +05:00
bugreport.go cmd/tailscale/cli: add Stdout, Stderr and output through them 2021-10-27 14:53:46 -07:00
cert.go cmd/tailscale/cli: add Stdout, Stderr and output through them 2021-10-27 14:53:46 -07:00
cli_test.go cmd/tailscale: changes to --advertise-tags should wait for possible 2021-10-20 10:31:40 -04:00
cli.go safesocket: add WindowsLocalPort const 2021-11-05 14:05:13 -07:00
debug.go cmd/tailscale/cli: add --watch flag to "debug metrics" subcommand 2021-11-16 13:48:21 -08:00
diag_other.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
diag.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
down.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 2021-10-27 15:19:52 -07:00
file.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 2021-10-27 15:19:52 -07:00
ip.go cmd/tailscale/cli: add Stdout, Stderr and output through them 2021-10-27 14:53:46 -07:00
logout.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 2021-10-27 15:19:52 -07:00
netcheck.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 2021-10-27 15:19:52 -07:00
ping.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 2021-10-27 15:19:52 -07:00
status.go cmd/tailscale/cli: add Stdout, Stderr and output through them 2021-10-27 14:53:46 -07:00
up.go cmd/tailscale/cli: add Stdout, Stderr and output through them 2021-10-27 14:53:46 -07:00
version.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 2021-10-27 15:19:52 -07:00
web_test.go cmd/tailscale: update web server test copyright 2021-07-13 12:30:49 -07:00
web.css cli: web advertise exit node button 2021-10-06 07:35:43 -07:00
web.go cmd/tailscale/cli: add, use log.Fatalf indirection for js/wasm 2021-10-27 15:19:52 -07:00
web.html cli: web advertise exit node button 2021-10-06 07:35:43 -07:00