registry

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewFuncs = map[string]NewFunc{}

NewFuncs is a map containing all the registered collectors.

Functions

func Register

func Register(name string, f NewFunc)

Register registers a new prometheus collector new function. Not safe for concurrent use. Safe for use from package init.

Types

type NewFunc

type NewFunc func(context.Context, map[string]interface{}) ([]prometheus.Collector, error)

NewFunc is the function that custom prometheus collectors implement should register at init time.

Jump to

Keyboard shortcuts

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