CloudWatch input metrics start time calculated from period, not interval, leading to missing data #4643
Labels
area/aws
AWS plugins including cloudwatch, ecs, kinesis
feature request
Requests for new plugin and for new features to existing plugins
Milestone
Here's something I'm trying to accomplish:
I want to retrieve certain EC2 metrics every 15 minutes. I want to retrieve the metrics in 5 minute periods, so that for a single metric and dimension, I should have 3 data points. Here's an example using AWSCLI:
Looking at the plugin code, though, the "start time" is calculated using the
period
. So, assuming we ignore thedelay
setting just to simplify, settingperiod
to5m
andinterval
to15m
gives me a single data point aggregated over 5 minutes from 5 minutes ago (with 2 data points at 10 and 15 minutes ago skipped entirely).I'm not sure if this is a bug or not, but it seems like the start time should be using the
interval
. In such a case, settingperiod
to5m
andinterval
to15m
gives me exactly what I want: a single API call issued every 15 minutes that contains 3 data points (5, 10, 15 minutes ago)The text was updated successfully, but these errors were encountered: