Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrRegister ¶
func GetOrRegister[T prometheus.Collector](collector T) T
GetOrRegister tries to register the given collector with Prometheus' DefaultRegisterer. If the registration fails because an identical collector is already registered then it returns the existing collector. Otherwise, it returns the input collector. Panics on other errors.
func PreCreateCounterPerSyncer ¶
func PreCreateCounterPerSyncer(cv *prometheus.CounterVec)
func PreCreateGaugePerSyncer ¶
func PreCreateGaugePerSyncer(cv *prometheus.GaugeVec)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.