Documentation
¶
Index ¶
Constants ¶
View Source
const ( // NfsProvisionerNamespace is namespace name for provisioner metrics. NfsVolumeProvisionerNamespace = "nfs_volume_provisioner" // PersistentVolumeSubsytem is subsystem name for persistentvolume metrics. PersistentVolumeSubsytem = "persistentvolume" // Metrics // ProvisionerRequestCreate represents metrics related to create resource request. ProvisionerRequestCreate = "create" // ProvisionerRequestDelete represents metrics related to delete resource request. ProvisionerRequestDelete = "delete" // Labels Process = "process" )
Variables ¶
View Source
var ( // PersistentVolumeDeleteTotal is used to collect accumulated count of persistent volumes deleted. PersistentVolumeDeleteTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: NfsVolumeProvisionerNamespace, Subsystem: PersistentVolumeSubsytem, Name: "delete_total", Help: "Total number of persistent volumes deleted", }, []string{Process}, ) // PersistentVolumeDeleteFailedTotal is used to collect accumulated count of persistent volume delete failed attempts. PersistentVolumeDeleteFailedTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: NfsVolumeProvisionerNamespace, Subsystem: PersistentVolumeSubsytem, Name: "delete_failed_total", Help: "Total number of persistent volume delete failed attempts", }, []string{Process}, ) // PersistentVolumeCreateTotal is used to collect accumulated count of persistent volume created. PersistentVolumeCreateTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: NfsVolumeProvisionerNamespace, Subsystem: PersistentVolumeSubsytem, Name: "create_total", Help: "Total number of persistent volumes created", }, []string{Process}, ) // PersistentVolumeCreateFailedTotal is used to collect accumulated count of persistent volume create requests failed. PersistentVolumeCreateFailedTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: NfsVolumeProvisionerNamespace, Subsystem: PersistentVolumeSubsytem, Name: "create_failed_total", Help: "Total number of persistent volume creation failed attempts", }, []string{Process}, ) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.