mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-01 14:12:32 -08:00
Client metrics are uploaded along with the logs of the process that has them. A process whose logs are uploaded by another process, such as the tailscaled subprocess of the Windows service, has no way to report its metrics. Add Remote, which applies the deltas encoded by another process to the metrics of the same names in this one, so that both are reported as one, by Metric.Value as well as in the logs. A counter is the sum of its values in both processes, and keeps what a remote process has added to it after that process exits. A gauge is set to its value in the remote process, and to zero when that process exits. Updates tailscale/corp#6528 Signed-off-by: Nick Khyl <[email protected]>