Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFailedRegistering = errors.New("failed registering metric")
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 ¶
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
Click to show internal directories.
Click to hide internal directories.