prometheus

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: 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.

Jump to

Keyboard shortcuts

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