20 lines
355 B
Go
20 lines
355 B
Go
package metrics
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"sigs.k8s.io/controller-runtime/pkg/metrics"
|
|
)
|
|
|
|
var (
|
|
ReconcilesTotal = prometheus.NewCounter(
|
|
prometheus.CounterOpts{
|
|
Name: "reconciles_total",
|
|
Help: "Number of total reconciliation attempts",
|
|
},
|
|
)
|
|
)
|
|
|
|
func init() {
|
|
metrics.Registry.MustRegister(ReconcilesTotal)
|
|
}
|