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