prometheus

package
v0.0.0-...-c42a961 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstrumentHandlerCounter

func InstrumentHandlerCounter(metric *prometheus.CounterVec, next http.Handler) http.Handler

func InstrumentHandlerDuration

func InstrumentHandlerDuration(metric prometheus.ObserverVec, next http.Handler) http.Handler

Types

type Counters

type Counters struct {
	InFlightGauge        prometheus.Gauge
	ReqTotalCounter      *prometheus.CounterVec
	ReqDurationHistogram *prometheus.HistogramVec
	// contains filtered or unexported fields
}

func DefaultCounters

func DefaultCounters() *Counters

DefaultCounters register counters which uses by default Must be called before function: func(h http.Handler) http.Handler

Jump to

Keyboard shortcuts

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