mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-22 17:01:43 +00:00
util/syspolicy: rename client metric keys (#10516)
Updates ENG-2513. Renames client metrics keys used on Windows for consistency with Apple platforms. Signed-off-by: Andrea Gottardo <andrea@tailscale.com>
This commit is contained in:
parent
d5d42d0293
commit
646d17ac8d
@ -12,8 +12,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
windowsErrors = clientmetric.NewCounter("windows_mdm_setting_errors")
|
windowsErrors = clientmetric.NewCounter("windows_syspolicy_errors")
|
||||||
windowsAny = clientmetric.NewGauge("windows_mdm_setting_any")
|
windowsAny = clientmetric.NewGauge("windows_syspolicy_any")
|
||||||
)
|
)
|
||||||
|
|
||||||
type windowsHandler struct{}
|
type windowsHandler struct{}
|
||||||
@ -54,7 +54,7 @@ func init() {
|
|||||||
if !l.isSet(k) {
|
if !l.isSet(k) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
clientmetric.NewGauge(fmt.Sprintf("windows_mdm_setting_%s", k)).Set(1)
|
clientmetric.NewGauge(fmt.Sprintf("windows_syspolicy_%s", k)).Set(1)
|
||||||
anySet = true
|
anySet = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user