sj26/sidekiq-cloudwatchmetrics

Metrics being collected with gaps between each time period

gabricc opened this issue · 3 comments

Hi everyone!

I added the sidekiq-cloudwatchmetrics gem to our code and followed the instructions you provided in the Readme. The metrics started to appear on CloudWatch, but there are gaps between each time period, which doesn’t seem to be normal... Ex:

image

If you see in the image above, we have metrics at 13:27h, between 13:45 to 14h and around 14:34. Aside from these time periods, we don’t have the metrics.

Our app is running on an ECS Fargate Cluster, this is the sidekiq.rb file:

require "sidekiq"
require "sidekiq/cloudwatchmetrics"

Sidekiq::CloudWatchMetrics.enable!

Maybe there is something missing in my config, can you help with that? Thanks!

sj26 commented

@gabricc this might be related to #16. Do you see anything in your sidekiq logs? Other folks are seeing messages like this:

Aws::CloudWatch::Errors::InvalidParameterValue: The value NaN for parameter MetricData.member.11.Value is invalid.

Hi @sj26 ! This is exactly the error I was getting, can you tell me if it was fixed?

sj26 commented

Thanks, this should be fixed in version 2.4.0.