-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[x-pack/metricbeat] ec2_integration_test #20951
Comments
Pinging @elastic/integrations-platforms (Team:Platforms) |
@jsoriano Could you point to me where is the terraform code? My suspicion is: we have a sleep/check waiting for the new created EC2 instance running but we don't check if this EC2 instance actually pushes metrics into CloudWatch yet before we start Metricbeat. Thank you! |
@kaiyan-sheng scenario started in CI is the one in |
@jsoriano Thank you!! Do we have a sleep timer or check to make sure the instance is up and running and reporting metrics to CloudWatch at somewhere else? |
@kaiyan-sheng I think the terraform scenario waits till the instance is up and running (it takes some time to complete the db instance), but I don't think it explicitly waits to have metrics in CloudWatch. If we need to wait for that maybe we need to do it in the test, with some timeout. Other thing that could be happening is that ec2 instances created for db instances don't report the same CloudWatch metrics (or no ec2 metrics at all), and the test was passing before because some other ec2 instance existed on this account. In that case we would need to add an ec2 instance to the scenario. |
@jsoriano Good point! I think adding a check for CloudWatch metrics will be needed. I will assign this issue to myself and put it on my todo list. Thank you! |
Flaky Test
beats/x-pack/metricbeat/module/aws/ec2/ec2_integration_test.go
Line 28 in 8fce110
Stack Trace
How to reproduce it
awsCloudTests
windowsTest
Build
The text was updated successfully, but these errors were encountered: