Skip to content

Commit

Permalink
fix prometheus field name from GuardianNode to guardian_node
Browse files Browse the repository at this point in the history
Co-authored-by: ftocal <fert1335@gmail.com>
  • Loading branch information
walker-16 and ftocal committed Jun 26, 2023
1 parent 7374050 commit b242c59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fly/internal/metrics/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func NewPrometheusMetrics(environment string) *PrometheusMetrics {
"environment": environment,
"service": serviceName,
},
}, []string{"guardianNode", "type"})
}, []string{"guardian_node", "type"})

governorConfigReceivedCount := promauto.NewCounterVec(
prometheus.CounterOpts{
Expand All @@ -78,7 +78,7 @@ func NewPrometheusMetrics(environment string) *PrometheusMetrics {
"environment": environment,
"service": serviceName,
},
}, []string{"guardianNode", "type"})
}, []string{"guardian_node", "type"})

governorStatusReceivedCount := promauto.NewCounterVec(
prometheus.CounterOpts{
Expand All @@ -88,7 +88,7 @@ func NewPrometheusMetrics(environment string) *PrometheusMetrics {
"environment": environment,
"service": serviceName,
},
}, []string{"guardianNode", "type"})
}, []string{"guardian_node", "type"})
return &PrometheusMetrics{
vaaReceivedCount: vaaReceivedCount,
vaaTotal: vaaTotal,
Expand Down

0 comments on commit b242c59

Please sign in to comment.