- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getVolumeInUseCount (0.17 sec)
-
pkg/controller/volume/attachdetach/metrics/metrics.go
ch <- inUseVolumeMetricDesc ch <- totalVolumesMetricDesc } func (collector *attachDetachStateCollector) CollectWithStability(ch chan<- metrics.Metric) { nodeVolumeMap := collector.getVolumeInUseCount(klog.TODO()) for nodeName, pluginCount := range nodeVolumeMap { for pluginName, count := range pluginCount { ch <- metrics.NewLazyConstMetric(inUseVolumeMetricDesc, metrics.GaugeValue, float64(count),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 10 06:30:05 UTC 2023 - 7.5K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/metrics/metrics_test.go
nil, nil, fakeVolumePluginMgr, csimigration.NewPluginManager(csiTranslator, utilfeature.DefaultFeatureGate), csiTranslator) logger, _ := ktesting.NewTestContext(t) nodeUseMap := metricCollector.getVolumeInUseCount(logger) if len(nodeUseMap) < 1 { t.Errorf("Expected one volume in use got %d", len(nodeUseMap)) } testNodeMetric := nodeUseMap["metric-test-host"]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 10:42:15 UTC 2024 - 6.1K bytes - Viewed (0)