tailscale/tstest
Anton Tolchanov 8546ff98fb tsweb: move varz handler(s) into separate modules
This splits Prometheus metric handlers exposed by tsweb into two
modules:
- `varz.Handler` exposes Prometheus metrics generated by our expvar
  converter;
- `promvarz.Handler` combines our expvar-converted metrics and native
  Prometheus metrics.

By default, tsweb will use the promvarz handler, however users can keep
using only the expvar converter. Specifically, `tailscaled` now uses
`varz.Handler` explicitly, which avoids a dependency on the
(heavyweight) Prometheus client.

Updates https://github.com/tailscale/corp/issues/10205

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2023-04-11 08:37:32 +01:00
..
archtest all: update copyright and license headers 2023-01-27 15:36:29 -08:00
integration tsweb: move varz handler(s) into separate modules 2023-04-11 08:37:32 +01:00
iosdeps all: update copyright and license headers 2023-01-27 15:36:29 -08:00
jsdeps all: update copyright and license headers 2023-01-27 15:36:29 -08:00
natlab all: use Go 1.20's bytes.Clone 2023-02-01 17:39:18 -08:00
tools all: update copyright and license headers 2023-01-27 15:36:29 -08:00
allocs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
clock.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
log_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
log.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
resource.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tstest_test.go tstest: add method to Replace values for tests 2023-03-03 17:02:33 -08:00
tstest.go all: use tstest.Replace more 2023-03-04 12:24:55 -08:00