- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getTotalVolumesCount (0.17 sec)
-
pkg/controller/volume/attachdetach/metrics/metrics.go
ch <- metrics.NewLazyConstMetric(inUseVolumeMetricDesc, metrics.GaugeValue, float64(count), string(nodeName), pluginName) } } stateVolumeMap := collector.getTotalVolumesCount() for stateName, pluginCount := range stateVolumeMap { for pluginName, count := range pluginCount { ch <- metrics.NewLazyConstMetric(totalVolumesMetricDesc, 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, nil, asw, dsw, fakeVolumePluginMgr, csimigration.NewPluginManager(csiTranslator, utilfeature.DefaultFeatureGate), csiTranslator) totalVolumesMap := metricCollector.getTotalVolumesCount() if len(totalVolumesMap) != 2 { t.Errorf("Expected 2 states, got %d", len(totalVolumesMap)) } dswCount, ok := totalVolumesMap["desired_state_of_world"] if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 10:42:15 UTC 2024 - 6.1K bytes - Viewed (0)