Skip to content

Commit

Permalink
fix prometheus field name from GuardianNode to guardian_node (#460)
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 authored Jun 26, 2023
1 parent 7374050 commit 471a6da
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions fly/internal/metrics/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +68,27 @@ func NewPrometheusMetrics(environment string) *PrometheusMetrics {
"environment": environment,
"service": serviceName,
},
}, []string{"guardianNode", "type"})
}, []string{"guardian_node", "type"})

governorConfigReceivedCount := promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "guardian_config_count_by_guardian",
Help: "Total number of guardian config by guardian",
Name: "governor_config_count_by_guardian",
Help: "Total number of governor config by guardian",
ConstLabels: map[string]string{
"environment": environment,
"service": serviceName,
},
}, []string{"guardianNode", "type"})
}, []string{"guardian_node", "type"})

governorStatusReceivedCount := promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "guardian_status_count_by_guardian",
Help: "Total number of guardian status by guardian",
Name: "governor_status_count_by_guardian",
Help: "Total number of governor status by guardian",
ConstLabels: map[string]string{
"environment": environment,
"service": serviceName,
},
}, []string{"guardianNode", "type"})
}, []string{"guardian_node", "type"})
return &PrometheusMetrics{
vaaReceivedCount: vaaReceivedCount,
vaaTotal: vaaTotal,
Expand Down

0 comments on commit 471a6da

Please sign in to comment.