Skip to content

Commit

Permalink
fix metric names
Browse files Browse the repository at this point in the history
Kubernetes-commit: aa788219f46ab0659a02a6d403b35de8de2939ed
  • Loading branch information
logicalhan authored and k8s-publishing-bot committed Jul 12, 2023
1 parent 9323b20 commit c4e269a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions metrics/prometheus/meta/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
var (
RegisteredMetrics = k8smetrics.NewCounterVec(
&k8smetrics.CounterOpts{
Name: "registered_metric_total",
Name: "registered_metrics_total",
Help: "The count of registered metrics broken by stability level and deprecation version.",
StabilityLevel: k8smetrics.BETA,
},
Expand All @@ -32,15 +32,15 @@ var (

DisabledMetricsTotal = k8smetrics.NewCounter(
&k8smetrics.CounterOpts{
Name: "disabled_metric_total",
Name: "disabled_metrics_total",
Help: "The count of disabled metrics.",
StabilityLevel: k8smetrics.BETA,
},
)

HiddenMetricsTotal = k8smetrics.NewCounter(
&k8smetrics.CounterOpts{
Name: "hidden_metric_total",
Name: "hidden_metrics_total",
Help: "The count of hidden metrics.",
StabilityLevel: k8smetrics.BETA,
},
Expand Down
6 changes: 3 additions & 3 deletions metrics/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (

registeredMetrics = NewCounterVec(
&CounterOpts{
Name: "registered_metric_total",
Name: "registered_metrics_total",
Help: "The count of registered metrics broken by stability level and deprecation version.",
StabilityLevel: BETA,
},
Expand All @@ -48,15 +48,15 @@ var (

disabledMetricsTotal = NewCounter(
&CounterOpts{
Name: "disabled_metric_total",
Name: "disabled_metrics_total",
Help: "The count of disabled metrics.",
StabilityLevel: BETA,
},
)

hiddenMetricsTotal = NewCounter(
&CounterOpts{
Name: "hidden_metric_total",
Name: "hidden_metrics_total",
Help: "The count of hidden metrics.",
StabilityLevel: BETA,
},
Expand Down

0 comments on commit c4e269a

Please sign in to comment.