prometheus

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: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RequestDurationSeconds tracks the seconds spent serving HTTP requests.
	// Used to monitor service status and raise alerts (using the RED method)
	RequestDurationSeconds *prometheus.HistogramVec
	// TotalRequests tracks the total number of HTTP requests.
	// Used for auto-scaling
	TotalRequests *prometheus.CounterVec
)

Functions

func NewPrometheusProvider

func NewPrometheusProvider(route string) monitoring.Provider

NewPrometheusProvider creates a new Prometheus metrics provider. route is the route the Prometheus server will contact to get metric information. If route is an empty string, it will default to "/metrics". TODO Provide a mechanism to define additional application-specific metrics.

Types

This section is empty.

Source Files

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