Files
tailscale/util
Nick Khyl ff9b8a19d9 util/clientmetric: add Remote to merge the metrics of another process
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]>
2026-12-01 12:13:24 -08:00
..
2026-11-23 12:48:28 -08:00
2026-11-14 09:50:33 -08:00