Add metric for reporting total end-to-end mount time

This metric includes time spent in waiting for devices to be attached,
any RPC calls and performing recursive chown etc.
This commit is contained in:
Hemant Kumar
2021-12-13 16:23:01 -05:00
parent 2ae44bd74a
commit 55b5e6dc33
3 changed files with 19 additions and 0 deletions

View File

@@ -387,6 +387,9 @@ type VolumeToMount struct {
// DesiredSizeLimit indicates the desired upper bound on the size of the volume
// (if so implemented)
DesiredSizeLimit *resource.Quantity
// time at which volume was requested to be mounted
MountRequestTime time.Time
}
// DeviceMountState represents device mount state in a global path.