monitoring

package
v1.57.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetricOptsList = map[MetricsKey]MetricOpts{
	CloneProgress: {
		Name: "clone_progress",
		Help: "The clone progress in percentage",
		Type: "Counter",
	},
	DataImportCronOutdated: {
		Name: "kubevirt_cdi_dataimportcron_outdated",
		Help: "DataImportCron has an outdated import",
		Type: "Gauge",
	},
	IncompleteProfile: {
		Name: "kubevirt_cdi_incomplete_storageprofiles_total",
		Help: "Total number of incomplete and hence unusable StorageProfile",
		Type: "Gauge",
	},
	ReadyGauge: {
		Name: "kubevirt_cdi_cr_ready",
		Help: "CDI CR Ready",
		Type: "Gauge",
	},
}

MetricOptsList list all CDI metrics

Functions

This section is empty.

Types

type MetricOpts

type MetricOpts struct {
	Name string
	Help string
	Type string
}

MetricOpts represent CDI Prometheus Metrics

type MetricsKey

type MetricsKey string

MetricsKey creates variables for metric reference

const (
	ReadyGauge             MetricsKey = "readyGauge"
	IncompleteProfile      MetricsKey = "incompleteProfile"
	DataImportCronOutdated MetricsKey = "dataImportCronOutdated"
	CloneProgress          MetricsKey = "cloneProgress"
)

All metrics names for reference

type RecordRulesDesc

type RecordRulesDesc struct {
	Opts MetricOpts
	Expr string
}

RecordRulesDesc represent CDI Prometheus Record Rules

func GetRecordRulesDesc

func GetRecordRulesDesc(namespace string) []RecordRulesDesc

GetRecordRulesDesc returns CDI Prometheus Record Rules

Jump to

Keyboard shortcuts

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