metric

package
v1.11.12-remove-ami.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: BSD-3-Clause Imports: 9 Imported by: 68

Documentation

Index

Constants

View Source
const (
	NamespaceSeparatorByte = '_'
	NamespaceSeparator     = string(NamespaceSeparatorByte)
)

Variables

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

Functions

func AppendNamespace added in v1.10.19

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(registerer prometheus.Registerer) (APIInterceptor, error)

type Averager added in v1.4.11

type Averager interface {
	Observe(float64)
}

func NewAverager added in v1.4.11

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

func NewAveragerWithErrs added in v1.4.11

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

func NewNoAverager added in v1.4.12

func NewNoAverager() Averager

Jump to

Keyboard shortcuts

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