fix prometheus field name from GuardianNode to guardian_node (#460)

Co-authored-by: ftocal <fert1335@gmail.com>
This commit is contained in:
walker-16 2023-06-26 16:25:28 -03:00 committed by GitHub
parent 737405054a
commit 471a6dad4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -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,