Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { // MetricsRoute returns the route to the metrics endpoint. MetricsRoute() string // MetricsHandler returns an HTTP handler to use with the metrics endpoint. MetricsHandler() http.Handler // Middleware returns a middleware used to gather metrics from HTTP traffic. Middleware(args ...interface{}) negroni.Handler }
Provider is a piece of middleware that acts as a provider for a monitoring system. This includes setting up setting up a middleware to gather data and an endpoint on the server that the monitoring system can use to scrape data.
Click to show internal directories.
Click to hide internal directories.