Giter Site home page Giter Site logo

Comments (4)

noxdafox avatar noxdafox commented on July 18, 2024

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.

  • You upgrade RabbitMQ and Erlang to a more recent version. This is the recommended solution as RMQ 3.6.x is not supported anymore.
  • You build the plugin yourself against RMQ 3.6.x and erlang 19 following the instructions in the README.

from rabbitmq-cloudwatch-exporter.

valentinbud avatar valentinbud commented on July 18, 2024

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 :).

from rabbitmq-cloudwatch-exporter.

noxdafox avatar noxdafox commented on July 18, 2024

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

from rabbitmq-cloudwatch-exporter.

valentinbud avatar valentinbud commented on July 18, 2024

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.

from rabbitmq-cloudwatch-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.