summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrea Gottardo <andrea@tailscale.com>2023-12-08 09:51:24 -0800
committerGitHub <noreply@github.com>2023-12-08 09:51:24 -0800
commit646d17ac8d693e995ae52a2f5f5bc35dcb8ea589 (patch)
tree143ca848ebc7bd65d445a389527a79dbc3c65b26
parentd5d42d02939ef87f63d53e22cbe38131ad6a3389 (diff)
downloadtailscale-646d17ac8d693e995ae52a2f5f5bc35dcb8ea589.tar.xz
tailscale-646d17ac8d693e995ae52a2f5f5bc35dcb8ea589.zip
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>
-rw-r--r--util/syspolicy/handler_windows.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/syspolicy/handler_windows.go b/util/syspolicy/handler_windows.go
index 668fd3db2..a4b986d9c 100644
--- a/util/syspolicy/handler_windows.go
+++ b/util/syspolicy/handler_windows.go
@@ -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
}
}