mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-21 06:01:42 +00:00
tsweb: quote label values to comply with Prometheus format.
This commit is contained in:
parent
ff6b3c2c38
commit
d580157921
@ -186,7 +186,7 @@ func varzHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
// IntMap uses expvar.Map on the inside, which presorts
|
// IntMap uses expvar.Map on the inside, which presorts
|
||||||
// keys. The output ordering is deterministic.
|
// keys. The output ordering is deterministic.
|
||||||
v.Do(func(kv expvar.KeyValue) {
|
v.Do(func(kv expvar.KeyValue) {
|
||||||
fmt.Fprintf(w, "%s{%s=%s} %v\n", name, v.Label, kv.Key, kv.Value)
|
fmt.Fprintf(w, "%s{%s=%q} %v\n", name, v.Label, kv.Key, kv.Value)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user