Skip to content

Commit 6346dbb

Browse files
committed
Fix metric names
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 452ff42 commit 6346dbb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

manager/manager.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (m *KubeBootstrapTokenManager) Init() {
6262
func (m *KubeBootstrapTokenManager) initPrometheus() {
6363
m.prometheus.token = prometheus.NewGaugeVec(
6464
prometheus.GaugeOpts{
65-
Name: "BootstrapToken_token_info",
65+
Name: "bootstraptoken_token_info",
6666
Help: "kube-bootstrap-token-manager token info",
6767
},
6868
[]string{"tokenID"},
@@ -71,7 +71,7 @@ func (m *KubeBootstrapTokenManager) initPrometheus() {
7171

7272
m.prometheus.tokenExpiration = prometheus.NewGaugeVec(
7373
prometheus.GaugeOpts{
74-
Name: "BootstrapToken_token_expiration",
74+
Name: "bootstraptoken_token_expiration",
7575
Help: "kube-bootstrap-token-manager token expiration time",
7676
},
7777
[]string{"tokenID"},
@@ -80,7 +80,7 @@ func (m *KubeBootstrapTokenManager) initPrometheus() {
8080

8181
m.prometheus.sync = prometheus.NewGaugeVec(
8282
prometheus.GaugeOpts{
83-
Name: "BootstrapToken_sync_status",
83+
Name: "bootstraptoken_sync_status",
8484
Help: "kube-bootstrap-token-manager sync status",
8585
},
8686
[]string{},
@@ -89,7 +89,7 @@ func (m *KubeBootstrapTokenManager) initPrometheus() {
8989

9090
m.prometheus.syncTime = prometheus.NewGaugeVec(
9191
prometheus.GaugeOpts{
92-
Name: "BootstrapToken_sync_time",
92+
Name: "bootstraptoken_sync_time",
9393
Help: "kube-bootstrap-token-manager last sync time",
9494
},
9595
[]string{},
@@ -98,7 +98,7 @@ func (m *KubeBootstrapTokenManager) initPrometheus() {
9898

9999
m.prometheus.syncCount = prometheus.NewCounterVec(
100100
prometheus.CounterOpts{
101-
Name: "BootstrapToken_sync_count",
101+
Name: "bootstraptoken_sync_count",
102102
Help: "kube-bootstrap-token-manager sync count",
103103
},
104104
[]string{},

0 commit comments

Comments
 (0)