-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow remote connections again when running in agent mode #730
Comments
I feel the jmx-exporter restriction is correct/valid. If Artemis security can't be defined to allow the jmx-exporter (as an agent / in-process) to work correctly, you can run the jmx-exporter in standalone mode. |
Here's what happened with rel 0.16.1 and previous releases: If you configure the Here's the relevant code from rel 0.16.1:
This lead to confusion among users. If users start In order to make this clearer, rel 0.17 and newer enforce this: Either you start As @dhoard says, you should run
|
It is clear to me that I can just run Due to Artemis using JAAS to secure its MBeans one has to specify credentials (username / password), which I think is only possibly when using a "remote" JMX connection. Thanks for the clarification and for describing your motivation for the change, so I think Artemis is quite an "edge case" here. Therefor I'm closing the issue. |
The change in #675 breaks my use case (=case 4 as discussed in #673 ), where ActiveMQ Artemis is monitored via Java Agent but with specified jmxUrl or hostPort.
Since 0.17.0 this is no longer possible:
SEVERE [io.prometheus.jmx.JmxCollector] Configuration error: When running jmx_exporter as a Java agent, you must not configure 'jmxUrl' or 'hostPort' because you don't want to monitor a remote JVM.
ActiveMQ Artemis uses a
management.xml
by default, which restricts access to certain MBeans (see https://activemq.apache.org/components/artemis/documentation/latest/management ).Therefore, it is necessary to connect "remotely" via JMX to be able to provide a username and password, altough running in agent mode:
I had to downgrade to 0.16.1 to still be able to monitor ActiveMQ Artemis.
The text was updated successfully, but these errors were encountered: