This PR is to record the previous endTime from the previous collection period to use for calculating the next collection start time and end time.
With using the previous endTime as the new startTime, we will not skip time range in collection.
This PR also changes log.logger from cloudwatch to aws.cloudwatch to match the other logger.
Checklist
[x] My code follows the style guidelines of this project
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] I have made corresponding change to the default configuration files
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.
Disruptive User Impact
N/A. User will see no gap in collection startTime and endTime, should be an enhancement.
How to test this PR locally
Pull this PR and run mage build to build Metricbeat locally.
Check metricbeat log to make sure startTime and endTime are connected for all collection periods.
This is an automatic backport of pull request #40870 done by Mergify.
Proposed commit message
This PR is to record the previous endTime from the previous collection period to use for calculating the next collection start time and end time. With using the previous endTime as the new startTime, we will not skip time range in collection.
This PR also changes log.logger from
cloudwatch
toaws.cloudwatch
to match the other logger.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Disruptive User Impact
N/A. User will see no gap in collection startTime and endTime, should be an enhancement.
How to test this PR locally
./metricbeat modules enable aws
aws.yml
:This is an automatic backport of pull request #40870 done by Mergify.