Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultBuckets = []float64{.005, .01, .02, 0.04, .06, 0.08, .1, 0.15, .25, 0.4, .6, .8, 1, 1.5, 2, 3, 5}
)
Functions ¶
func NewMiddleware ¶
func NewMiddleware(name, prefix string, buckets ...float64) func(handler fasthttp.RequestHandler) fasthttp.RequestHandler
NewMiddleware is
func PrometheusHandler ¶
func PrometheusHandler() fasthttp.RequestHandler
Types ¶
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
Prometheus contains the metrics gathered by the instance and its path
Click to show internal directories.
Click to hide internal directories.