Merge pull request #91805 from RainbowMango/pr_update_build_info_metric

update metric kubernetes_build_info labels from camelCase to snake_case.
This commit is contained in:
Kubernetes Prow Robot 2020-06-05 05:43:43 -07:00 committed by GitHub
commit 46afcb75d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.",
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",
"get_token_count",
"get_token_fail_count",
"kubernetes_build_info",
"node_collector_evictions_number",
// kube-proxy
"kubernetes_build_info",
// kubelet-resource-v1alpha1
"container_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.",
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"},
)
)