-
-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature-request: Configure prometheus exporter #910
Comments
To put this issue into context;
|
Is it working now that #909 is resolved, or is any additional fix needed? |
Enabling the plugin works ( (I want to add that there's a none-zero chance that I've somehow overlooked something with the below claims, but I haven't found a way around this) Configuring the plugin is another matter. Let's say I want to change the TCP-port the prometheus endpoint listen on. Using the sysctl-format config file, I would do: This issue may be a duplicate of #829 at this point -- but it should be mentioned that upstream documentation is either incomplete when it comes to the classic format, or some features there are missing altogether. |
Dropping support for, say, <= 3.7 (which has now been around since ~ 2017) would probably simplify a number of things (for example, the availability of json formatted output, version being available without rabbitmq already being started / running), etc. This could go along with breaking changes as proposed in #845 etc. I have very little time / energy (or incentive) to do anything that big or structural with this module, but will be happy to advise or help in some small ways if someone wants to start taking this on. The new config file format seems more readable, and in some ways would presumably be easier to manage via Puppet as well. It would probably take some work, in particular, reworking both unit and integration tests, and it will be most easy for someone who can get the integration tests working well locally. In short, it's going to take someone with some fairly good experience with Puppet and its internals (including types / providers), as well as recent experience using Rabbitmq, and some time to spare, to really make the kind of improvements in this module that needs to be made. I would have assumed that it would be possible to configure it with the old config format, but it also seems non-obvious how to line up the old / new style directives (and maybe it's just not possible?) |
Ran into this same issue as @kvisle, not sure if the problem still exists, but what i did was use the newer 'sysctl' config format (rabbitmq.conf) and fill it with .erb file that contains the stuff i want to change. Configured rabbitmq-env.conf to have ADVANCED_CONFIG_FILE and CONFIG_FILE to point to their respective files. This way the original config can stay put and i can configure Prometheus.tcp.port via Puppet. Still need to figure out how i can configure rabbitmq class to not touch rabbitmq.config as that's being set when you use the |
Newer versions of RabbitMQ include a Prometheus-exporter (https://www.rabbitmq.com/prometheus.html).
It would be useful to easily be able to enable the exporter and update some of its basic settings.
Attempts at using this module to do this have been unsuccessful. Possibly due to own incompetence, and possibly because of #829 and #909.
The text was updated successfully, but these errors were encountered: