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>
pull/10521/head
Andrea Gottardo 6 months ago committed by GitHub
parent d5d42d0293
commit 646d17ac8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,8 +12,8 @@ import (
)
var (
windowsErrors = clientmetric.NewCounter("windows_mdm_setting_errors")
windowsAny = clientmetric.NewGauge("windows_mdm_setting_any")
windowsErrors = clientmetric.NewCounter("windows_syspolicy_errors")
windowsAny = clientmetric.NewGauge("windows_syspolicy_any")
)
type windowsHandler struct{}
@ -54,7 +54,7 @@ func init() {
if !l.isSet(k) {
continue
}
clientmetric.NewGauge(fmt.Sprintf("windows_mdm_setting_%s", k)).Set(1)
clientmetric.NewGauge(fmt.Sprintf("windows_syspolicy_%s", k)).Set(1)
anySet = true
}
}

Loading…
Cancel
Save