cloudwatch exporter - exporting logs issue

95 views
Skip to first unread message

Grzegorz Grzesiuk

unread,
Sep 27, 2021, 5:37:29 AM9/27/21
to rabbitmq-users
Hi All, 

I have an issue when using cloudwatch exporter plugin. My Rabbitmq cluster consist of 3 nodes running on AWS EC2 instances. 
I'm using IAM role with attached policy to grant access to logs and cloudwatch. 

I want to use cloudwatch exporter plugin  to export logs and metrics. Unfortunately it seems that only metrics are expoerted but not logs. I'm getting the following errors in the logs: 
error] <0.354.0> Lager failed to install handler lager_cloudwatch_backend into rabbit_log_upgrade_lager_event, retrying later : {'EXIT',
                                                                                                                {undef,
                                                                                                                 [{crypto,
                                                                                                                   hmac,
                                                                                                                   [sha256,
                                                                                                                    "AWS4NEh8lTR6nL32s1qzS++EpOZ6A/veQlpVIKjXgrYk",
                                                                                                                    "20210927"],
                                                                                                                   []},
                                                                                                                  {erlcloud_aws,
                                                                                                                   signing_key,
                                                                                                                   4,
                                                                                                                   [{file,
                                                                                                                     "src/erlcloud_aws.erl"},
                                                                                                                    {line,
                                                                                                                     1128}]},
                                                                                                                  {erlcloud_aws,
                                                                                                                   sign_v4,
                                                                                                                   8,
                                                                                                                   [{file,
                                                                                                                     "src/erlcloud_aws.erl"},
                                                                                                                    {line,
                                                                                                                     1048}]},
                                                                                                                  {erlcloud_cloudwatch_logs,
                                                                                                                   make_request_headers,
                                                                                                                   3,
                                                                                                                   [{file,
                                                                                                                     "src/erlcloud_cloudwatch_logs.erl"},
                                                                                                                    {line,
                                                                                                                     703}]},
                                                                                                                  {erlcloud_cloudwatch_logs,
                                                                                                                   maybe_cw_request,
                                                                                                                   3,
                                                                                                                   [{file,
                                                                                                                     "src/erlcloud_cloudwatch_logs.erl"},
                                                                                                                    {line,
                                                                                                                     687}]},
                                                                                                                  {erlcloud_cloudwatch_logs,
                                                                                                                   describe_log_groups,
                                                                                                                   4,
                                                                                                                   [{file,
                                                                                                                     "src/erlcloud_cloudwatch_logs.erl"},
                                                                                                                    {line,
                                                                                                                     334}]},
                                                                                                                  {lager_cloudwatch_backend,
                                                                                                                   maybe_create_log_group,
                                                                                                                   1,
                                                                                                                   [{file,
                                                                                                                     "src/lager_cloudwatch_backend.erl"},
                                                                                                                    {line,
                                                                                                                     129}]},
                                                                                                                  {lager_cloudwatch_backend,
                                                                                                                   init,
                                                                                                                   1,
                                                                                                                   [{file,
                                                                                                                     "src/lager_cloudwatch_backend.erl"},
                                                                                                                    {line,
                                                                                                                     78}]}]}}


My rabbitmq.conf setting related to plugin:

cloudwatch_exporter.aws.region = eu-west-1
cloudwatch_exporter.metrics.overview.enable = true
cloudwatch_exporter.metrics.vhost.enable = true
cloudwatch_exporter.metrics.node.enable = true
cloudwatch_exporter.metrics.exchange.enable = true
cloudwatch_exporter.metrics.queue.enable = true
log.file.level = debug

and in advanced.conf 
[{lager,
  [{handlers, [{lager_cloudwatch_backend, [debug, "RabbitMQ", "rabbitmq-sandbox"]}]}]}].

Any advice with this issue ? 
Thank in advance,
Greg

Michal Kuratczyk

unread,
Sep 27, 2021, 8:52:57 AM9/27/21
to rabbitm...@googlegroups.com
Hi,

The issue is related to the Erlang version and seems like it has been resolved: https://github.com/noxdafox/rabbitmq-cloudwatch-exporter/issues/34
By the way, cloudwatch-exporter is a community plugin so in the future, it's probably better to raise an issue on Github.

Best,

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/caf07231-1d5b-4930-8cae-d48a8cb5d831n%40googlegroups.com.


--
Michał
RabbitMQ team
Reply all
Reply to author
Forward
0 new messages