Documentation ¶
Index ¶
- func LoadTracer(addr, service string, dur time.Duration, secure bool) (closeTracer func(), err error)
- func NewPrometheusMonitor(namespace string) gin.HandlerFunc
- func PromGauge(name string) gin.HandlerFunc
- func PromHandler() gin.HandlerFunc
- func PromInstrument(name string) gin.HandlerFunc
- func PrometheusFunc(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadTracer ¶
func PromGauge ¶
func PromGauge(name string) gin.HandlerFunc
func PromHandler ¶
func PromHandler() gin.HandlerFunc
func PromInstrument ¶
func PromInstrument(name string) gin.HandlerFunc
InstrumentHandler instruments any HTTP handler for the request total and request duration metric
func PrometheusFunc ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.