Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] refactor stats package to fetch EBS Volume stats for Windows #4217

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

rawahars
Copy link
Contributor

Summary

Presently, the code path in stats package of the agent, which invokes the CSI Client to fetch volume metrics, is limited to Linux platform only. The same code path can be used for Windows as well.

This change refactors the existing code to ensure that the EBS volume stats are collected for Windows as well in addition to Linux.

Implementation details

Refactor the code from Linux specific files to common platform files.

Testing

Using unit and integration tests for Windows and Linux.

New tests cover the changes: N/A

Description for the changelog

refactor stats package to fetch EBS Volume stats for Windows

Does this PR include breaking model changes? If so, Have you added transformation functions?

No

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@saurabhc123 saurabhc123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We just need to ensure that the downstream method within csi client is implemented and tested for Windows.

agent/stats/engine.go Show resolved Hide resolved
@mye956 mye956 added the bot/test label Jul 9, 2024
@mye956 mye956 force-pushed the feature/ebs-windows branch 2 times, most recently from 4179cea to 225bb4b Compare July 11, 2024 21:10
Presently, the code path in stats package of the agent, which invokes the CSI Client to fetch volume metrics is limited to Linux platform only. The same code path can be used for Windows as well.

This change refactors the existing code to ensure that the EBS volume stats are collected for Windows as well in addition to Linux.
@mye956 mye956 merged commit fd55fbe into aws:feature/ebs-windows Jul 15, 2024
40 checks passed
@jiuchoe4 jiuchoe4 mentioned this pull request Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants