update metric kubernetes_build_info labels from camelCase to snake_case.

This commit is contained in:
RainbowMango 2020-06-05 11:37:23 +08:00
parent 2dc408abb3
commit 1bc5ed4515
3 changed files with 2 additions and 6 deletions

View File

@ -29,7 +29,7 @@ var (
Help: "A metric with a constant '1' value labeled by major, minor, git version, git commit, git tree state, build date, Go version, and compiler from which Kubernetes was built, and platform on which it is running.", Help: "A metric with a constant '1' value labeled by major, minor, git version, git commit, git tree state, build date, Go version, and compiler from which Kubernetes was built, and platform on which it is running.",
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
}, },
[]string{"major", "minor", "gitVersion", "gitCommit", "gitTreeState", "buildDate", "goVersion", "compiler", "platform"}, []string{"major", "minor", "git_version", "git_commit", "git_tree_state", "build_date", "go_version", "compiler", "platform"},
) )
) )

View File

@ -47,12 +47,8 @@ var exceptionMetrics = []string{
"authentication_attempts", "authentication_attempts",
"get_token_count", "get_token_count",
"get_token_fail_count", "get_token_fail_count",
"kubernetes_build_info",
"node_collector_evictions_number", "node_collector_evictions_number",
// kube-proxy
"kubernetes_build_info",
// kubelet-resource-v1alpha1 // kubelet-resource-v1alpha1
"container_cpu_usage_seconds_total", "container_cpu_usage_seconds_total",
"node_cpu_usage_seconds_total", "node_cpu_usage_seconds_total",

View File

@ -25,7 +25,7 @@ var (
Help: "A metric with a constant '1' value labeled by major, minor, git version, git commit, git tree state, build date, Go version, and compiler from which Kubernetes was built, and platform on which it is running.", Help: "A metric with a constant '1' value labeled by major, minor, git version, git commit, git tree state, build date, Go version, and compiler from which Kubernetes was built, and platform on which it is running.",
StabilityLevel: ALPHA, StabilityLevel: ALPHA,
}, },
[]string{"major", "minor", "gitVersion", "gitCommit", "gitTreeState", "buildDate", "goVersion", "compiler", "platform"}, []string{"major", "minor", "git_version", "git_commit", "git_tree_state", "build_date", "go_version", "compiler", "platform"},
) )
) )