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}]}]}}