metrics

package
v0.0.0-...-8a7802e Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

View Source
const MaxLabelCount = 20

MaxLabelCount max label count limit

Variables

View Source
var (

	// ErrLabelCountExceeded error label count exceeded
	ErrLabelCountExceeded = fmt.Errorf("label count exceeded, max is %d", MaxLabelCount)
)

Functions

func NewMetrics

func NewMetrics(prefix string, constLabels map[string]string) (api.Metrics, error)

NewMetrics returns a metrics

func RegisterHTTPHandler

func RegisterHTTPHandler(f func(pattern string, handler http.Handler))

RegisterHTTPHandler register metrics with http mode

Types

This section is empty.

Jump to

Keyboard shortcuts

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