Documentation
¶
Overview ¶
Package prometheusutil centralizes strict Prometheus collector reuse.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCollector ¶
func RegisterCollector[T prometheus.Collector]( registerer prometheus.Registerer, collector T, reuse bool, validateExisting func(T) error, ) (T, error)
RegisterCollector registers a collector or returns an exactly compatible existing collector.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.