prometheusutil

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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