metrics

package
v3.0.0-...-d6c4d9c Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KubermaticLoginDurationMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "kubermatic_login_duration_seconds",
		Help:      "Time it took to perform the Kubermatic login, in seconds",
	}, []string{"prowjob"})

	KubermaticReconciliationDurationMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "kubermatic_reconciliation_duration_seconds",
		Help:      "Time it took for Kubermatic to fully reconcile the test cluster",
	}, []string{"prowjob", "scenario"})

	SeedControlplaneDurationMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "seed_controlplane_duration_seconds",
		Help:      "Time it took the user-cluster's controlplane pods in the seed cluster to become ready",
	}, []string{"prowjob", "scenario"})

	ClusterControlplaneDurationMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "cluster_controlplane_duration_seconds",
		Help:      "Time it took for all pods to be ready in a user cluster after all worker nodes have become ready",
	}, []string{"prowjob", "scenario"})

	NodeCreationDuration = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "node_creation_duration_seconds",
		Help:      "Time it took for all nodes to spawn after the NodeDeployments were created",
	}, []string{"prowjob", "scenario"})

	NodeRadinessDuration = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "node_readiness_duration_seconds",
		Help:      "Time it took for all nodes to become ready they appeared",
	}, []string{"prowjob", "scenario"})

	ScenarioRuntimeMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "scenario_runtime_seconds",
		Help:      "Total duration of a scenario test run",
	}, []string{"prowjob", "scenario"})

	GinkgoRuntimeMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "ginkgo_runtime_seconds",
		Help:      "Number of seconds a Ginkgo run took",
	}, []string{"prowjob", "scenario", "run", "attempt"})

	GinkgoAttemptsMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "ginkgo_attempts",
		Help:      "Number of times a job has been run for a given scenario",
	}, []string{"prowjob", "scenario", "run"})

	PVCTestRuntimeMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "pvctest_runtime_seconds",
		Help:      "Number of seconds a pvctest run took",
	}, []string{"prowjob", "scenario", "attempt"})

	PVCTestAttemptsMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "pvctest_attempts",
		Help:      "Number of times a job has been run for a given scenario",
	}, []string{"prowjob", "scenario"})

	LBTestRuntimeMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "lbtest_runtime_seconds",
		Help:      "Number of seconds a lbtest run took",
	}, []string{"prowjob", "scenario", "attempt"})

	LBTestAttemptsMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Name:      "lbtest_attempts",
		Help:      "Number of times a job has been run for a given scenario",
	}, []string{"prowjob", "scenario"})
)

Functions

func MeasureTime

func MeasureTime(metric prometheus.Gauge, log *zap.SugaredLogger, callback func() error) error

func Setup

func Setup(endpoint string, prowjob string, instance string)

func TimeMeasurementWrapper

func TimeMeasurementWrapper(metric prometheus.Gauge, log *zap.SugaredLogger, callback func() error) func() error

func UpdateMetrics

func UpdateMetrics(log *zap.SugaredLogger)

Types

This section is empty.

Jump to

Keyboard shortcuts

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