metric

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: BSD-3-Clause Imports: 7 Imported by: 68

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 added in v1.4.11

type Averager interface {
	Observe(float64)
}

func NewAverager added in v1.4.11

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

func NewAveragerWithErrs added in v1.4.11

func NewAveragerWithErrs(namespace, 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