tailscale/ipn/ipnlocal
Mihai Parparita d0906cda97 net/sockstats: expose debug info
Exposes some internal state of the sockstats package via the C2N and
PeerAPI endpoints, so that it can be used for debugging. For now this
includes the estimated radio on percentage and a second-by-second view
of the times the radio was active.

Also fixes another off-by-one error in the radio on percentage that
was leading to >100% values (if n seconds have passed since we started
to monitor, there may be n + 1 possible seconds where the radio could
have been on).

Updates tailscale/corp#9230

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2023-04-19 14:33:12 -07:00
..
testdata ipn/ipnlocal: fix the path for writing cert files (#7203) 2023-02-07 14:34:04 -08:00
c2n.go net/sockstats: expose debug info 2023-04-19 14:33:12 -07:00
cert.go ipn/ipnlocal: use atomicfile.WriteFile in certFileStore 2023-03-23 17:35:44 -07:00
cert_js.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cert_test.go ipn/ipnlocal: fix the path for writing cert files (#7203) 2023-02-07 14:34:04 -08:00
dnsconfig_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
expiry.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
expiry_test.go ipn/ipnlocal: handle more edge cases in netmap expiry timer 2023-02-06 20:32:25 -05:00
local.go net/dnsfallback: more explicitly pass through logf function 2023-04-17 12:06:23 -07:00
local_test.go all: pass log IDs as the proper type rather than strings 2023-03-23 11:26:55 -07:00
loglines_test.go all: pass log IDs as the proper type rather than strings 2023-03-23 11:26:55 -07:00
network-lock.go cmd/tailscale: surface node-key for locked out tailnet-lock peers 2023-03-09 11:06:23 -10:00
network-lock_test.go various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
peerapi.go net/sockstats: expose debug info 2023-04-19 14:33:12 -07:00
peerapi_h2c.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_macios_ext.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
profiles.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2023-04-03 14:41:46 -07:00
profiles_notwindows.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2023-04-03 14:41:46 -07:00
profiles_test.go .github/workflows: reenable Windows CI, disable broken tests 2023-04-14 14:13:53 -07:00
profiles_windows.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2023-04-03 14:41:46 -07:00
serve.go cmd/tailscale/cli: do not allow turning Funnel on while shields-up (#7770) 2023-04-04 22:20:27 -04:00
serve_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_stub.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_test.go ipn/ipnlocal: drop not required StateKey parameter 2023-01-30 17:58:55 -08:00
state_test.go all: pass log IDs as the proper type rather than strings 2023-03-23 11:26:55 -07:00