Kristoffer Dalby
55d29a9c6d
metrics: add SetInt and SetFloat helper
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-08-15 18:22:57 +02:00
Kristoffer Dalby
9eec0d969c
util/usermetrics: add package and container for usermetrics
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-08-15 18:22:56 +02:00
Brad Fitzpatrick
7c1d6e35a5
all: use Go 1.22 range-over-int
...
Updates #11058
Change-Id: I35e7ef9b90e83cac04ca93fd964ad00ed5b48430
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-04-16 15:32:38 -07:00
Brad Fitzpatrick
9699bb0a20
metrics: fix outdated docs on MultiLabelMap
...
And make NewMultiLabelMap panic earlier (at construction time)
if the comparable struct type T violates the documented rules,
rather than panicking at Add time.
Updates #cleanup
Change-Id: Ib1a03babdd501b8d699c4f18b1097a56c916c6d5
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-04-04 20:53:47 -07:00
Brad Fitzpatrick
55baf9474f
metrics, tsweb/varz: add multi-label map metrics
...
Updates tailscale/corp#18640
Change-Id: Ia9ae25956038e9d3266ea165537ac6f02485b74c
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-03-26 09:01:04 -07:00