const pvControllerSubsystem …
const totalPVKey …
const boundPVKey …
const unboundPVKey …
const boundPVCKey …
const unboundPVCKey …
const namespaceLabel …
const storageClassLabel …
const volumeAttributesClassLabel …
const pluginNameLabel …
const volumeModeLabel …
const pluginNameNotAvailable …
var registerMetrics …
type PVLister …
type PVCLister …
func Register(pvLister PVLister, pvcLister PVCLister, pluginMgr *volume.VolumePluginMgr) { … }
func newPVAndPVCCountCollector(pvLister PVLister, pvcLister PVCLister, pluginMgr *volume.VolumePluginMgr) *pvAndPVCCountCollector { … }
type pvAndPVCCountCollector …
type pvcBindingMetricDimensions …
func getPVCMetricDimensions(pvc *v1.PersistentVolumeClaim) pvcBindingMetricDimensions { … }
var _ …
var totalPVCountDesc …
var boundPVCountDesc …
var unboundPVCountDesc …
var boundPVCCountDesc …
var unboundPVCCountDesc …
var volumeOperationErrorsMetric …
var retroactiveStorageClassMetric …
var retroactiveStorageClassErrorMetric …
type volumeCount …
func (v volumeCount) add(pluginName string, volumeMode string) { … }
func (collector *pvAndPVCCountCollector) DescribeWithStability(ch chan<- *metrics.Desc) { … }
func (collector *pvAndPVCCountCollector) CollectWithStability(ch chan<- metrics.Metric) { … }
func (collector *pvAndPVCCountCollector) getPVPluginName(pv *v1.PersistentVolume) string { … }
func (collector *pvAndPVCCountCollector) pvCollect(ch chan<- metrics.Metric) { … }
func (collector *pvAndPVCCountCollector) pvcCollect(ch chan<- metrics.Metric) { … }
func RecordRetroactiveStorageClassMetric(success bool) { … }
func RecordVolumeOperationErrorMetric(pluginName, opName string) { … }
type operationTimestamp …
func newOperationTimestamp(pluginName, operationName string) *operationTimestamp { … }
type OperationStartTimeCache …
func NewOperationStartTimeCache() OperationStartTimeCache { … }
func (c *OperationStartTimeCache) AddIfNotExist(key, pluginName, operationName string) { … }
func (c *OperationStartTimeCache) Delete(key string) { … }
func (c *OperationStartTimeCache) Has(key string) bool { … }
func RecordMetric(key string, c *OperationStartTimeCache, err error) { … }