mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-04 20:09:03 +00:00
tsweb: export version metrics to Prometheus
This will allow tracking build versions and runtime versions in Prometheus. Signed-off-by: Anton Tolchanov <anton@tailscale.com>
This commit is contained in:
committed by
Anton Tolchanov
parent
8d84178884
commit
f053f16460
@@ -542,6 +542,12 @@ foo_totalY 4
|
||||
promWriter{},
|
||||
"custom_var_value 42\n",
|
||||
},
|
||||
{
|
||||
"string_version_var",
|
||||
"foo_version",
|
||||
expvar.Func(func() any { return "1.2.3-foo15" }),
|
||||
"foo_version{version=\"1.2.3-foo15\"} 1\n",
|
||||
},
|
||||
{
|
||||
"field_ordering",
|
||||
"foo",
|
||||
|
||||
Reference in New Issue
Block a user