Documentation ¶
Index ¶
- Constants
- func DeleteDataImportCronOutdated(labels prometheus.Labels) int
- func DeleteStorageProfileStatus(labels prometheus.Labels) int
- func GetDataImportCronOutdated(labels prometheus.Labels) float64
- func GetStorageProfileStatus(labels prometheus.Labels) float64
- func SetDataImportCronOutdated(labels prometheus.Labels, isOutdated bool)
- func SetDataVolumePending(value int)
- func SetStorageProfileStatus(labels prometheus.Labels, status int)
- func SetupMetrics() error
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.