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.
Click to show internal directories.
Click to hide internal directories.