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

Use aws sdk paginator for FilterLogEvents and GetMetricData #26852

Merged
merged 4 commits into from
Jul 19, 2021
Merged

Use aws sdk paginator for FilterLogEvents and GetMetricData #26852

merged 4 commits into from
Jul 19, 2021

Conversation

kaiyan-sheng
Copy link
Contributor

@kaiyan-sheng kaiyan-sheng commented Jul 12, 2021

What does this PR do?

This PR refactors AWS related code to use AWS SDK paginators instead.

  1. In Filebeat aws-cloudwatch input, change FilterLogEvents API to use NewFilterLogEventsPaginator.
  2. In Metricbeat, change GetMetricData to use NewGetMetricDataPaginator.
  3. In Metricbeat, change ListMetrics to use NewListMetricsPaginator.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 12, 2021
@kaiyan-sheng kaiyan-sheng self-assigned this Jul 12, 2021
@kaiyan-sheng kaiyan-sheng added needs_backport PR is waiting to be backported to other branches. Team:Integrations Label for the Integrations team labels Jul 12, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 12, 2021
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jul 12, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-07-15T12:55:20.659+0000

  • Duration: 97 min 10 sec

  • Commit: f439f96

Test stats 🧪

Test Results
Failed 0
Passed 10358
Skipped 1489
Total 11847

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 10358
Skipped 1489
Total 11847

@aspacca
Copy link
Contributor

aspacca commented Jul 16, 2021

@kaiyan-sheng reviewed and tested, LGTM

@aspacca
Copy link
Contributor

aspacca commented Jul 19, 2021

+1

@kaiyan-sheng kaiyan-sheng merged commit 683130a into elastic:master Jul 19, 2021
@kaiyan-sheng kaiyan-sheng deleted the aws_cloudwatch_paginator branch July 19, 2021 14:00
@kaiyan-sheng kaiyan-sheng added v7.15.0 and removed needs_backport PR is waiting to be backported to other branches. labels Jul 19, 2021
kaiyan-sheng added a commit that referenced this pull request Jul 19, 2021
kaiyan-sheng added a commit that referenced this pull request Jul 19, 2021
mdelapenya added a commit to mdelapenya/beats that referenced this pull request Jul 20, 2021
* master:
  Forward port 7.13.4 to master (elastic#26971)
  Use MustAddMetricSet in all metricsets (elastic#26907)
  add_process_metadata: enrich process info with process owner (elastic#21068) (elastic#21111)
  Use aws sdk paginator for FilterLogEvents and GetMetricData (elastic#26852)
  [Filebeat] Allow - for source IP for AWS S3 Access pipeline (elastic#26940)
  Increase timeout to 30secs (elastic#26841)
  Add Cluster filter on Kubernetes Overview ECS dashboard (elastic#26919)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Integrations Label for the Integrations team v7.14.0 v7.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filebeat aws-cloudwatch input missing logs
3 participants