promutils

package
v0.0.0-...-21cfbab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2023 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL