negroni-prometheus: github.com/zbindenren/negroni-prometheus Index | Files | Directories

package negroniprometheus

import "github.com/zbindenren/negroni-prometheus"

Index

Package Files

middleware.go

type Middleware Uses

type Middleware struct {
    // contains filtered or unexported fields
}

Middleware is a handler that exposes prometheus metrics for the number of requests, the latency and the response size, partitioned by status code, method and HTTP path.

func NewMiddleware Uses

func NewMiddleware(name string, buckets ...float64) *Middleware

NewMiddleware returns a new prometheus Middleware handler.

func (*Middleware) ServeHTTP Uses

func (m *Middleware) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

Directories

PathSynopsis
example

Package negroniprometheus imports 4 packages (graph) and is imported by 3 packages. Updated 2017-12-07. Refresh now. Tools for package owners.