monitoring

package
Version: v0.0.0-...-d873827 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 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.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL