noxdafox / rabbitmq-cloudwatch-exporter

RabbitMQ Plugin for publishing cluster metrics to AWS CloudWatch
Mozilla Public License 2.0
41 stars 9 forks source link

Support high resolution metrics #17

Closed chathsuom closed 4 years ago

chathsuom commented 4 years ago

We need to get metrics in fine granularity. for .e.g. 20s intervals.

cloudwatch_exporter.export_period = 20

Tried with setting this but still, I can see 60s intervals in cloud watch

noxdafox commented 4 years ago

Hello,

CloudWatch supports 2 types of metrics:

  1. Standard: the default ones with 1 minute minimum resolution
  2. High Resolution: 1 second minimum resolution

This plugin publishes the metrics as standard metrics. All metric points are actually uploaded but CloudWatch aggregates them into a 1 minute period.

I can add support for high resolution metrics in the plugin but be aware that this will incur extra costs on your CloudWatch bills.

chathsuom commented 4 years ago

Hello, Thanks for the prompt response. We need only message count on some queues to try ECS scaling. I saw there is another issue that provides selecting only for e.g. messages. We will have to evaluate the cost with that. Also, I am not sure the effort and the feasibility, but do you think we can somehow configure the period against the queue and also the time of the day.

Thanks.

noxdafox commented 4 years ago

The configuration can only be static. Therefore, providing the requested granularity would be too cumbersome.

What I can provide, is a flag to enable high resolution on AWS CW itself. Nevertheless, it would be global for all metrics you export. Hence the costs need to be considered.

With the new version of the plugin under work you will be able to choose which metrics to export. See the README for the new version. You could export only the message queue sizes and use the high resolution together.

chathsuom commented 4 years ago

Do you think at a minimum, you can enable StorageResolution? As you said a flag may be.

noxdafox commented 4 years ago

Feature added in release v1.0.0.