Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RecordOperationLatencyMetric (0.22 sec)

  1. pkg/volume/util/metrics.go

    			return fmt.Sprintf("%s:%s", pluginName, spec.PersistentVolume.Spec.CSI.Driver)
    		}
    	}
    	return pluginName
    }
    
    // RecordOperationLatencyMetric records the end to end latency for certain operation
    // into metric volume_operation_total_seconds
    func RecordOperationLatencyMetric(plugin, operationName string, secondsTaken float64) {
    	storageOperationEndToEndLatencyMetric.WithLabelValues(plugin, operationName).Observe(secondsTaken)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 23 23:05:31 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  2. pkg/controller/volume/persistentvolume/metrics/metrics.go

    	if !ok {
    		return
    	}
    	if err != nil {
    		RecordVolumeOperationErrorMetric(ts.pluginName, ts.operation)
    	} else {
    		timeTaken := time.Since(ts.startTs).Seconds()
    		metricutil.RecordOperationLatencyMetric(ts.pluginName, ts.operation, timeTaken)
    		// end of this operation, remove the timestamp entry from cache
    		c.Delete(key)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 25 13:09:16 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  3. pkg/volume/util/operationexecutor/operation_generator.go

    		// plugin call to succeed
    		mountRequestTime := volumeToMount.MountRequestTime
    		totalTimeTaken := time.Since(mountRequestTime).Seconds()
    		util.RecordOperationLatencyMetric(util.GetFullQualifiedPluginNameForVolume(volumePluginName, volumeToMount.VolumeSpec), "overall_volume_mount", totalTimeTaken)
    
    		markVolMountedErr := actualStateOfWorld.MarkVolumeAsMounted(markOpts)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
Back to top