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

added support for metrics when using awsvpc mode on Windows #3087

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

rawahars
Copy link
Contributor

Summary

Currently, the metrics support was available only for tasks running in default mode on Windows. The changes introduced in this PR extends this support for tasks running in awsvpc network mode as well.

Implementation details

For Windows, Get-NetAdapterStatistics command is invoked for the given task ENI and the stats from the same are recorded. The existing Linux workflow is leveraged by segregating them into Windows and Linux platform specific files.

Testing

Unit and integ tests were ran. Additionally, a custom agent binary was tested on WS 2016, 2019, and 2022.

New tests cover the changes:
Yes

Description for the changelog

Added support for metrics when using awsvpc network mode on Windows

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

@jterry75 jterry75 left a comment

Choose a reason for hiding this comment

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

Few Comments

jterry75
jterry75 previously approved these changes Nov 12, 2021
Copy link
Contributor

@jterry75 jterry75 left a comment

Choose a reason for hiding this comment

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

LGTM

agent/stats/task_windows.go Show resolved Hide resolved
agent/stats/task_windows.go Outdated Show resolved Hide resolved
angelcar
angelcar previously approved these changes Nov 15, 2021
angelcar
angelcar previously approved these changes Nov 15, 2021
angelcar
angelcar previously approved these changes Nov 15, 2021
jterry75
jterry75 previously approved these changes Nov 15, 2021
Currently, the metrics support was available only for tasks running in default mode on Windows. The changes introduced in this commit extends this support for tasks running in awsvpc network mode as well.
@rawahars
Copy link
Contributor Author

Rebased the PR over latest dev. No other changes in the last force push.

@fierlion fierlion merged commit 7130677 into aws:dev Nov 16, 2021
@mythri-garaga mythri-garaga mentioned this pull request Dec 3, 2021
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.

6 participants