metrics

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EgressReqDuration = prometheus.NewHistogramVec(
	prometheus.HistogramOpts{
		Subsystem: metricsPrefix,
		Name:      "egress_request_duration_seconds",
		Help:      "The duration of the requests to the Cluster Registry API.",
		Buckets:   reqDurBuckets,
	},
	[]string{"route", "method", "status_code"},
)
View Source
var ErrCnt = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Subsystem: metricsPrefix,
		Name:      "error_count",
		Help:      "The total number of errors, labeled by the test",
	},
	[]string{"test"},
)
View Source
var TestDuration = prometheus.NewHistogramVec(
	prometheus.HistogramOpts{
		Subsystem: metricsPrefix,
		Name:      "test_duration_seconds",
		Help: "It's how much time took for the test to complete. For the e2e test the " +
			"sleeps are excluded.",
		Buckets: reqDurBuckets,
	},
	[]string{"test"},
)
View Source
var TestStatus = prometheus.NewGaugeVec(
	prometheus.GaugeOpts{
		Subsystem: metricsPrefix,
		Name:      "test_status",
		Help: "The status of the last SLT, has values between 1 if the check passed and 0 " +
			"if it failed.",
	},
	[]string{"test"},
)

Functions

func RegisterMetrics

func RegisterMetrics()

RegisterMetrics registers the metrics from this package

func SetLogger

func SetLogger(lgr echo.Logger)

SetLogger sets the global logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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