Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InternalMetricOptsList = map[MetricsKey]MetricOpts{ CloneProgress: { Name: "clone_progress", Help: "The clone progress in percentage", Type: "Counter", }, }
InternalMetricOptsList list all CDI metrics used for internal purposes only
View Source
var MetricOptsList = map[MetricsKey]MetricOpts{ DataImportCronOutdated: { Name: "kubevirt_cdi_dataimportcron_outdated", Help: "DataImportCron has an outdated import", Type: "Gauge", }, StorageProfileStatus: { Name: "kubevirt_cdi_storageprofile_info", Help: "`StorageProfiles` info labels: " + "`storageclass`, `provisioner`, " + "`complete` indicates if all storage profiles recommended PVC settings are complete, " + "`default` indicates if it's the Kubernetes default storage class, " + "`virtdefault` indicates if it's the default virtualization storage class, " + "`rwx` indicates if the storage class supports `ReadWriteMany`, " + "`smartclone` indicates if it supports snapshot or CSI based clone", Type: "Gauge", }, ReadyGauge: { Name: "kubevirt_cdi_cr_ready", Help: "CDI install ready", Type: "Gauge", }, DataVolumePending: { Name: "kubevirt_cdi_datavolume_pending", Help: "Number of DataVolumes pending for default storage class to be configured", Type: "Gauge", }, }
MetricOptsList list all CDI metrics
Functions ¶
This section is empty.
Types ¶
type MetricOpts ¶
MetricOpts represent CDI Prometheus Metrics
type MetricsKey ¶
type MetricsKey string
MetricsKey creates variables for metric reference
const ( CloneProgress MetricsKey = "cloneProgress" DataImportCronOutdated MetricsKey = "dataImportCronOutdated" StorageProfileStatus MetricsKey = "storageProfileStatus" ReadyGauge MetricsKey = "readyGauge" DataVolumePending MetricsKey = "dataVolumePending" )
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
Click to show internal directories.
Click to hide internal directories.