Enable CSI sidecar container metrics #1780
Closed
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.
What is this PR about? / Why do we need it?
This PR sets the
--http-endpoint
CLI param for the following CSI sidecars:csi-provisioner
csi-attacher
csi-snapshotter
csi-resizer
Context
The driver frequently makes API calls to EC2, such as
AttachVolume
. Recorded latency for these API calls is primarily representative of the time taken for AWS to acknowledge the call and queue it for processing. This latency, however, does not encompass the entirety of the operation's lifecycle.While the initial
AttachVolume
API call might return a response promptly, the actual state transition of the volume — from being detached to attached—might take a longer duration. This necessitates continuous polling or "describing" the volume to track its current state to confirm its successful transition.For an accurate measurement of operation durations, such as the time required to attach a volume, the entire process must be accounted for -- from the initiation of the
ControllerPublishVolume
RPC call (which triggers the attachment) to the moment the volume's "attached" state is confirmed. In short, to accurately measure the time taken for operations to complete such asControllerPublishVolume
, the instrumentation needs to happen at the sidecar layer, and notebs-plugin
.What testing is done?
Manual testing: