Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getTotalVolumesCount (0.17 sec)

  1. 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)
  2. 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)
Back to top