Skip to content

Commit

Permalink
fix: metrics names to satisfy golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
raczu committed Oct 26, 2023
1 parent b08dd10 commit 3c3be4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/provisioner/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
// number of succeeded enrollment operations.
CertificateEnrollmentSuccess = prometheus.NewCounter(prometheus.CounterOpts{
Namespace: namespace,
Name: "certificate_enrollment_success",
Name: "certificate_enrollment_success_total",
Help: "The total number of succeeded enrollment operations",
})

Expand All @@ -50,7 +50,7 @@ var (
// as not expected ones, which results in the failure of enrollment operation).
CertificateEnrollmentFail = prometheus.NewCounter(prometheus.CounterOpts{
Namespace: namespace,
Name: "certificate_enrollment_fail",
Name: "certificate_enrollment_fail_total",
Help: "The total number of failed enrollment operations",
})

Expand All @@ -68,7 +68,7 @@ var (
// of NCM.
CertificateRenewalSuccess = prometheus.NewCounter(prometheus.CounterOpts{
Namespace: namespace,
Name: "certificate_renewal_success",
Name: "certificate_renewal_success_total",
Help: "The total number of succeeded renewal operations",
})

Expand All @@ -78,7 +78,7 @@ var (
// in k8s API, a missing certificate details secret or an NCM API error.
CertificateRenewalFail = prometheus.NewCounter(prometheus.CounterOpts{
Namespace: namespace,
Name: "certificate_renewal_fail",
Name: "certificate_renewal_fail_total",
Help: "The total number of failed renewal operations",
})
)
Expand Down

0 comments on commit 3c3be4a

Please sign in to comment.