promutils

package
v1.11.0-cni-plu...-8a901cc Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 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