You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
1 year ago
..
archtest all: update copyright and license headers 1 year ago
integration tsweb: move varz handler(s) into separate modules 1 year ago
iosdeps all: update copyright and license headers 1 year ago
jsdeps all: update copyright and license headers 1 year ago
natlab all: use Go 1.20's bytes.Clone 1 year ago
tools all: update copyright and license headers 1 year ago
allocs.go all: update copyright and license headers 1 year ago
clock.go all: update copyright and license headers 1 year ago
log.go all: update copyright and license headers 1 year ago
log_test.go all: update copyright and license headers 1 year ago
resource.go all: update copyright and license headers 1 year ago
tstest.go all: use tstest.Replace more 1 year ago
tstest_test.go tstest: add method to Replace values for tests 1 year ago