Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Registry ¶
func Registry(r *prometheus.Registry) func(*Prometheus)
Registry is an option allowing to set a *prometheus.Registry with New
func Subsystem ¶
func Subsystem(sub string) func(*Prometheus)
Subsystem is an option which allows to set the subsystem when initializing with New
Types ¶
type FasthttpHandlerFunc ¶
type FasthttpHandlerFunc func(*fasthttp.RequestCtx)
type Prometheus ¶
type Prometheus struct { MetricsPath string // contains filtered or unexported fields }
func NewPrometheus ¶
func NewPrometheus(options ...func(*Prometheus)) *Prometheus
func (*Prometheus) WrapHandler ¶
func (p *Prometheus) WrapHandler(r *fasthttprouter.Router) fasthttp.RequestHandler
Click to show internal directories.
Click to hide internal directories.