Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultInstrument = NewInstrument()
Functions ¶
func WithMetrics ¶
func WithMetrics(path string, handler gin.HandlerFunc) gin.HandlerFunc
Types ¶
type Instrument ¶
type Instrument struct {
// contains filtered or unexported fields
}
func NewInstrument ¶
func NewInstrument() *Instrument
func (*Instrument) Collect ¶
func (i *Instrument) Collect(ch chan<- prom.Metric)
func (*Instrument) Describe ¶
func (i *Instrument) Describe(ch chan<- *prom.Desc)
func (*Instrument) WithMetrics ¶
func (i *Instrument) WithMetrics(path string, handler gin.HandlerFunc) gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.