Comments (5)
Hello,
The plugin was built against RMQ v3.7.x and it's bytecode is most-likely not compatible with RMQ v3.8.x.
I am not planning to provide builds for RMQ v3.8.x until it's not declared stable.
Nevertheless, the plugin builds and operates correctly against RMQ master branch so I'd suggest to compile your own version and try to ship it. The documentation provides build instructions. Just use Elixir <= 1.8.x as per issue #9 there seems to be problem with the latest version.
from rabbitmq-cloudwatch-exporter.
Thank you for quick response.
I`ll try and let you know
from rabbitmq-cloudwatch-exporter.
Following combination works perfectly:
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.8.0-rc.1'
override dep_rabbit_common = git https://github.com/rabbitmq/rabbitmq-common 'v3.8.0-rc.1'
override dep_rabbitmq_management = git https://github.com/rabbitmq/rabbitmq-management 'v3.8.0-rc.1'
override dep_rabbitmq_management_agent = git https://github.com/rabbitmq/rabbitmq-management-agent 'v3.8.0-rc.1'
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
Dockerfile:
FROM elixir:1.8-otp-22 as build
ENV MIX_ENV=prod
RUN apt-get update && apt-get install -y rsync zip
RUN git clone https://github.com/noxdafox/rabbitmq-cloudwatch-exporter.git
ADD Makefile rabbitmq-cloudwatch-exporter
WORKDIR rabbitmq-cloudwatch-exporter
RUN curl --silent -L http://github.com/rabbitmq/mix_task_archive_deps/releases/download/0.4.0/mix_task_archive_deps-0.4.0.ez -o mix_task_archive_deps-0.4.0.ez
RUN mix archive.install --force ./mix_task_archive_deps-0.4.0.ez
RUN make dist
FROM rabbitmq:3.8-rc-management-alpine
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/certifi-2.5.1.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/elixir-1.8.2.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/ex_aws_cloudwatch-2.0.4.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/ex_aws-2.1.1.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/hackney-1.15.1.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/idna-6.0.0.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/logger-1.8.2.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/metrics-1.0.1.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/mimerl-1.2.0.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/poison-3.1.0.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/rabbitmq_cloudwatch_exporter-0.2.1.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/singleton-1.2.0.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/ssl_verify_fun-1.1.4.ez ./plugins
COPY --from=build /rabbitmq-cloudwatch-exporter/plugins/unicode_util_compat-0.4.1.ez ./plugins
RUN rabbitmq-plugins enable --offline rabbitmq_cloudwatch_exporter
from rabbitmq-cloudwatch-exporter.
Glad it worked!
Technically you don't need to modify the Makefile. RMQ Makefile detects from which branch to pull based on the branch name of the repository. Therefore, the master
branch will pull the latest code. The v3.8.x
branch should pull the 3.8 dependency versions whereas v3.7.x
will do it for 3.7.
from rabbitmq-cloudwatch-exporter.
@noxdafox
I think that I am getting the same error:
02 Jan 2020 17:31:03.112rabbit-broker rabbit[3045]: ** {{badfun,nil},[{'Elixir.RabbitMQCloudWatchExporter.Exporter','-handle_info/2-fun-3-',2,[{file,"lib/rabbitmq_cloudwatch_exporter/exporter.ex"},{line,56}]},{'Elixir.Enum',flat_map_list,2,[{file,"lib/enum.ex"},{line,2986}]},{'Elixir.Enum',flat_map_list,2,[{file,"lib/enum.ex"},{line,2987}]},{'Elixir.RabbitMQCloudWatchExporter.Exporter',handle_info,2,[{file,"lib/rabbitmq_cloudwatch_exporter/exporter.ex"},{line,56}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,637}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,711}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]} 02 Jan 2020 17:31:03.113rabbit-broker rabbit[3045]: 2020-01-02 17:31:03.115 [error] <0.987.0> CRASH REPORT Process <0.987.0> with 1 neighbours crashed with reason: bad function nil in 'Elixir.RabbitMQCloudWatchExporter.Exporter':'-handle_info/2-fun-3-'/2 line 56 02 Jan 2020 17:31:03.113rabbit-broker rabbit[3045]: 2020-01-02 17:31:03.116 [error] <0.777.0> Supervisor 'Elixir.Singleton.Supervisor' had child 'Elixir.Singleton.Manager' started with 'Elixir.Singleton.Manager':start_link('Elixir.RabbitMQCloudWatchExporter.Exporter', [], rabbitmq_cloudwatch_exporter, 'singleton_0bpF3SXqPZTQc80tAf+lu7E5kqQ') at <0.986.0> exit with reason bad function nil in 'Elixir.RabbitMQCloudWatchExporter.Exporter':'-handle_info/2-fun-3-'/2 line 56 in context child_terminated 02 Jan 2020 17:31:33.488
on Rabbit 3.7.23
with Erlang version 22.2.1
from rabbitmq-cloudwatch-exporter.
Related Issues (20)
- Error: dependent plugins [goldrush] not found; used by [lager]. HOT 6
- Update plugin configuration in runtime (without a restart) HOT 2
- Metrics not reset (accumulating) HOT 4
- Question: I see that used old style config for node exporter plugin HOT 1
- Error during enable plugin for erlang 21 HOT 3
- fatal: repository 'https://github.com/rabbitmq/rabbitmq-stream-management.git/' not found HOT 3
- Lager failed to install handler lager_cloudwatch_backend into lager_event HOT 8
- getting 'module could not be loaded' string_compat,to_lower in the latest rabbitmq 3.8
- Support for IMDSV2 HOT 5
- Call to undefined function crypto:hmac HOT 6
- Duplicate and dependency errors HOT 4
- Exporting metrics doesn't work anymore after reinstall HOT 13
- Missing dependencies on enabling plugin HOT 5
- CloudWatch routingKey Metrics HOT 3
- cloudwatch exporter - exporting logs issue HOT 5
- No logs published to Cloudwatch HOT 16
- Metrics export not working in ME-south-1 HOT 9
- Logs are not being sent to Cloudwatch
- a
- bug with cluster name / node IP metric aggregation HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rabbitmq-cloudwatch-exporter.