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

Add resource metric integration test #453

Open
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

varunch77
Copy link
Member

@varunch77 varunch77 commented Jan 17, 2025

Description of the issue

There is no integration test that verifies that an entity is being sent when we send resource metrics such as cpu and memory to CloudWatch—this is currently a gap in our testing.

Description of changes

  • Create an agent config to send resource metrics to Cloudwatch
  • Sign and send a request that calls ListEntitiesForMetric to get the entity associated with our metrics
  • Validate the returned entity
  • Update our integration testing IAM role to include permission for ListEntitiesForMetric

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

Integration test run: https://github.com/aws/amazon-cloudwatch-agent/actions/runs/12838570212

@varunch77 varunch77 changed the title Resource metric integ test Add resource metric integration test Jan 17, 2025
@varunch77 varunch77 marked this pull request as ready for review January 17, 2025 23:05
@varunch77 varunch77 requested a review from a team as a code owner January 17, 2025 23:05
@@ -25,7 +25,7 @@ import (
//------------------------------------------------------------------------------

var (
env *environment.MetaData
env *environment.MetaData
Copy link
Member Author

@varunch77 varunch77 Jan 17, 2025

Choose a reason for hiding this comment

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

unrelated to rest of PR, just a linter change

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.

1 participant