metric

package
v1.11.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: BSD-3-Clause Imports: 10 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailedRegistering = errors.New("failed registering metric")

Functions

func AppendNamespace added in v1.11.1

func AppendNamespace(prefix, suffix string) string

Types

type APIInterceptor

type APIInterceptor interface {
	InterceptRequest(i *rpc.RequestInfo) *http.Request
	AfterRequest(i *rpc.RequestInfo)
}

func NewAPIInterceptor

func NewAPIInterceptor(namespace string, registerer prometheus.Registerer) (APIInterceptor, error)

type Averager

type Averager interface {
	Observe(float64)
}

func NewAverager

func NewAverager(namespace, name, desc string, reg prometheus.Registerer) (Averager, error)

func NewAveragerWithErrs

func NewAveragerWithErrs(namespace, name, desc string, reg prometheus.Registerer, errs *wrappers.Errs) Averager

func NewNoAverager

func NewNoAverager() Averager

Jump to

Keyboard shortcuts

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