Closed valentinbud closed 5 years ago
Greetings,
The plugin has been tested on RabbitMQ 3.7.x and 3.8.0. It is built against RabbitMQ 3.7.x using Erlang 20.3.x.
It has not been tested against RMQ 3.6.x and Erlang 19. You can proceed in two different ways.
Hi @noxdafox,
Thank you for answering me so promptly. I have already tried to install from source and I am getting the error I've specified above.
[...]
src/ra_server_proc.erl:953: illegal pattern
src/ra_server_proc.erl:956: variable 'S' is unbound
src/ra_server_proc.erl:957: illegal pattern
src/ra_server_proc.erl:962: variable 'E' is unbound
src/ra_server_proc.erl:962: variable 'S' is unbound
make[3]: *** [ebin/ra.app] Error 1
make[2]: *** [app] Error 2
make[2]: Leaving directory `/root/rabbitmq-cloudwatch-exporter/deps/ra'
make[1]: *** [deps] Error 2
make[1]: Leaving directory `/root/rabbitmq-cloudwatch-exporter/deps/rabbit'
make: *** [deps] Error 2
Since RMQ 3.6 is unsupported I'll try to follow the upgrade to a newer version of RMQ path. It's the best one.
Taking the above into consideration I'll close the issue.
Thank you :).
The above error is because it's trying to build rabbitmq from the master branch rather than 3.6.x
.
To get it work, add the following lines to the Makefile
:
override dep_rabbit = git https://github.com/rabbitmq/rabbitmq-server v3.6.x
override dep_rabbit_common = git https://github.com/rabbitmq/rabbitmq-common v3.6.x
override dep_rabbitmq_management = git https://github.com/rabbitmq/rabbitmq-management v3.6.x
override dep_rabbitmq_management_agent = git https://github.com/rabbitmq/rabbitmq-management-agent v3.6.x
Right after the line:
DEPS = rabbit_common rabbit rabbitmq_management rabbitmq_management_agent
Hello @noxdafox,
Thank you for getting back to me with the above clarification. My installation in on Amazon Linux AMI 2018.03.
I have done the modifications you've suggested.
# cat Makefile
PROJECT = rabbitmq_cloudwatch_exporter
DEPS = rabbit_common rabbit rabbitmq_management rabbitmq_management_agent
override dep_rabbit = git https://github.com/rabbitmq/rabbitmq-server v3.6.x
override dep_rabbit_common = git https://github.com/rabbitmq/rabbitmq-common v3.6.x
override dep_rabbitmq_management = git https://github.com/rabbitmq/rabbitmq-management v3.6.x
override dep_rabbitmq_management_agent = git https://github.com/rabbitmq/rabbitmq-management-agent v3.6.x
DEP_PLUGINS = rabbit_common/mk/rabbitmq-plugin.mk
elixir_srcs := mix.exs
app:: $(elixir_srcs) deps
$(MIX) make_all
# FIXME: Use erlang.mk patched for RabbitMQ, while waiting for PRs to be
# reviewed and merged.
ERLANG_MK_REPO = https://github.com/rabbitmq/erlang.mk.git
ERLANG_MK_COMMIT = rabbitmq-tmp
include rabbitmq-components.mk
include erlang.mk
Now I receive another error:
erlang.mk:30: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[1]: Entering directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbit_common'
erlang.mk:30: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[2]: Entering directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/recon'
/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbit_common/erlang.mk:30: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[2]: Leaving directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/recon'
make[1]: Leaving directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbit_common'
make[1]: Entering directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbit'
erlang.mk:30: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[2]: Entering directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/ranch'
/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbit/erlang.mk:30: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[2]: Leaving directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/ranch'
make[1]: Leaving directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbit'
make[1]: Entering directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbitmq_management'
erlang.mk:30: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[2]: Entering directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/amqp_client'
erlang.mk:30: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[2]: Leaving directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/amqp_client'
make[2]: Entering directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/cowboy'
/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbitmq_management/erlang.mk:30: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[3]: Entering directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/cowlib'
/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbitmq_management/erlang.mk:30: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[3]: Leaving directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/cowlib'
make[2]: Leaving directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/cowboy'
make[2]: Entering directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbitmq_web_dispatch'
erlang.mk:30: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[2]: Leaving directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbitmq_web_dispatch'
make[2]: Entering directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbitmq_management_agent'
erlang.mk:30: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
make[2]: Leaving directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbitmq_management_agent'
make[1]: Leaving directory `/root/OPS-80/rabbitmq-cloudwatch-exporter/deps/rabbitmq_management'
make_all
make: make_all: Command not found
make: *** [app] Error 127
Anyway, I am going to migrate to 3.7.x this week so please ignore this. Once again thank you for your help.
Hi,
I am trying to use the exporter on RabbitMQ installed on Amazon Linux 2018.03.
erlang and rabbitmq versions.
When enabling the plugin I receive the following:
I have also tried to install from source using elixir 1.7.4. I receive the following:
Please tell me if the plugin could functions with my installed versions, or should I update erlang and rabbitmq. Thank you :).