cdicontroller

package
v1.60.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PrometheusCronNsLabel labels the DataImportCron namespace
	PrometheusCronNsLabel = "ns"
	// PrometheusCronNameLabel labels the DataImportCron name
	PrometheusCronNameLabel = "cron_name"
	// PrometheusCronPendingLabel labels whether the DataImportCron import DataVolume is pending for default storage class
	PrometheusCronPendingLabel = "pending"
)

Variables

This section is empty.

Functions

func DeleteDataImportCronOutdated

func DeleteDataImportCronOutdated(labels prometheus.Labels) int

DeleteDataImportCronOutdated deletes metrics by their labels, and return the number of deleted metrics

func DeleteStorageProfileStatus

func DeleteStorageProfileStatus(labels prometheus.Labels) int

DeleteStorageProfileStatus deletes metrics by their labels, and return the number of deleted metrics

func GetDataImportCronOutdated added in v1.59.1

func GetDataImportCronOutdated(labels prometheus.Labels) float64

GetDataImportCronOutdated returns the dataImportCronOutdated value

func GetStorageProfileStatus

func GetStorageProfileStatus(labels prometheus.Labels) float64

GetStorageProfileStatus returns the storageProfileStatus value

func SetDataImportCronOutdated

func SetDataImportCronOutdated(labels prometheus.Labels, isOutdated bool)

SetDataImportCronOutdated sets dataImportCronOutdated value

func SetDataVolumePending

func SetDataVolumePending(value int)

SetDataVolumePending sets dataVolumePending value

func SetStorageProfileStatus

func SetStorageProfileStatus(labels prometheus.Labels, status int)

SetStorageProfileStatus sets storageProfileStatus value

func SetupMetrics

func SetupMetrics() error

SetupMetrics register prometheus metrics

Types

This section is empty.

Jump to

Keyboard shortcuts

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