Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromMiddleware ¶
type PromMiddleware 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 (*PromMiddleware) MiddlewareFunc ¶
func (mw *PromMiddleware) MiddlewareFunc(h rest.HandlerFunc) rest.HandlerFunc
NewMiddleware returns a new prometheus Middleware handler.
Click to show internal directories.
Click to hide internal directories.