Files
tailscale/tsweb
Brad Fitzpatrick 72a7f41564 tsweb/promvarz, cmd/tailscaled: don't mix other metrics into filtered varz
The promvarz and tailscaled /debug/varz handlers wrap varz.Handler with
metrics it doesn't know about: promvarz writes the Prometheus client's
metrics first, and tailscaled appends clientmetrics. With the match and
interval parameters that varz got in 258b087998 (#22636), that meant
unfiltered metrics around filtered ones, a bad parameter's error after
a 200 and a full dump, and streams that didn't start with a frame. Now
requests with a query string get only varz's own output.

Updates tailscale/corp#47429

Change-Id: I617969401b1ff269db32481b2656841b70355d57
Signed-off-by: Brad Fitzpatrick <[email protected]>
2026-11-26 08:58:57 -08:00
..