[ws-manager] add metrics to track initialize and finalize of workspaces #9355
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add metrics to track initialize (time it takes to download and untar backup for example or to load prebuild) and finalize (time it takes to create and upload backup of workspace).
This metrics will be used later on to compare them to PVC implementation.
Related Issue(s)
Fixes #9353
How to test
Spin up new workspace preview environment using installer from this PR
Create new workspace, create large file in workspace and stop workspace.
Then open that workspace again.
Port forward metrics port of ws-manager and look for new metrics.
Times reported will match the time it took to finalize or initialize the workspace.
Release Notes
Documentation