Andrew Dunham
03aa2ecf32
metrics, tsweb: add Distribution type
...
Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Ia3a87cccc35623dccdf74c0ff49f2785ced3c0df
2022-10-20 10:01:04 -04:00
Brad Fitzpatrick
fc160f80ee
metrics: move currentFDs code to the metrics package
...
Updates #2784
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-09-02 11:14:14 -07:00
Brad Fitzpatrick
f267a7396f
metrics: add LabelMap.GetFloat
2020-07-19 12:31:12 -07:00
David Anderson
f192c05413
metrics: add a LabelMap type for variables with 1 label dimension.
...
This lets us publish sets of vars that are breakdowns along one
dimension in a format that Prometheus and Grafana natively know
how to do useful things with.
Signed-off-by: David Anderson <dave@natulte.net>
2020-03-04 13:22:50 -08:00
Brad Fitzpatrick
e371520cc5
tsweb, derp: add expvar http.Handler for Prometheus's format
...
And add some opinions.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-03-03 13:59:16 -08:00