monitoring

package
v1.0.0-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL