metrics

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorMetric measures API call failures
	ErrorMetric = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "sciensano_api_errors_total",
		Help: "Number of failed Reporter API calls",
	}, []string{"endpoint"})

	// LatencyMetric measures API call duration
	LatencyMetric = promauto.NewSummaryVec(prometheus.SummaryOpts{
		Name: "sciensano_api_latency",
		Help: "Latency of Reporter API calls",
	}, []string{"endpoint"})

	// Metrics contains all APIClientMetrics
	Metrics = metrics.APIClientMetrics{
		Latency: LatencyMetric,
		Errors:  ErrorMetric,
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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