JMX exporter problem, can't run process

62 views
Skip to first unread message

Jacek 1974

unread,
Jul 6, 2020, 5:26:31 AM7/6/20
to Prometheus Users
Hi, pls help I don't know where is The problem.

I have installed ActiveMQ in docker, something like: https://hub.docker.com/r/webcenter/activemq/, AMQ: -p 8161:8161 -p 61616:61616 -p 61613:61613 \

according to: https://github.com/prometheus/jmx_exporter I want to run jmx exporter on my AMQ server. I tried a lot of variants:


1. I found activemq.jar (Docker) /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/bin/activemq.jar

2. activemq.yml = https://github.com/prometheus/jmx_exporter/blob/master/example_configs/activemq.yml

3. cmd:
java -javaagent:/opt/scripts/jmx_prometheus_javaagent-0.13.0.jar=9110:/opt/scripts/activemq.yml -jar /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/bin/activemq.jar

gets:

 java -javaagent:/opt/scripts/jmx_prometheus_javaagent-0.13.0.jar=9110:/opt/scripts/activemq.yml -jar /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/bin/activemq.jar
Java Runtime: Oracle Corporation xxxxxxxxxx /usr/lib/jvm/java-................
  Heap sizes: current=XXX free=XXX max=XXX
    JVM args: -javaagent:/opt/scripts/jmx_prometheus_javaagent-0.13.0.jar=9110:/opt/scripts/activemq.yml
Extensions classpath:
  [/opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/lib,/opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/lib/camel,/opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/lib/optional,/opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/lib/web,/opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/lib/extra]
ACTIVEMQ_HOME: /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq
ACTIVEMQ_BASE: /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq
ACTIVEMQ_CONF: /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/conf
ACTIVEMQ_DATA: /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/data
Usage: Main [--extdir <dir>] [task] [task-options] [task data]

Tasks:
    browse                   - Display selected messages in a specified destination.
    bstat                    - Performs a predefined query that displays useful statistics regarding the specified broker
    consumer                 - Receives messages from the broker
    create                   - Creates a runnable broker instance in the specified path.
    decrypt                  - Decrypts given text
    dstat                    - Performs a predefined query that displays useful tabular statistics regarding the specified destination type
    encrypt                  - Encrypts given text
    export                   - Exports a stopped brokers data files to an archive file
    list                     - Lists all available brokers in the specified JMX context
    producer                 - Sends messages to the broker
    purge                    - Delete selected destination's messages that matches the message selector
    query                    - Display selected broker component's attributes and statistics.
    start                    - Creates and starts a broker using a configuration file, or a broker URI.
    stop                     - Stops a running broker specified by the broker name.

Task Options (Options specific to each task):
    --extdir <dir>  - Add the jar files in the directory to the classpath.
    --version       - Display the version information.
    -h,-?,--help    - Display this help information. To display task specific help, use Main [task] -h,-?,--help

Task Data:
    - Information needed by each specific task.

JMX system property options:
    -Dactivemq.jmx.url=<jmx service uri> (default is: 'service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi')
    -Dactivemq.jmx.user=<user name>
    -Dactivemq.jmx.password=<password>



4. the same but with --version at the end 

gets:
java -javaagent:/opt/scripts/jmx_prometheus_javaagent-0.13.0.jar=9110:/opt/scripts/activemq.yml -jar /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/bin/activemq.jar --version
Java Runtime: Oracle Corporation xxxxx /usr/lib/jvm/j.....
  Heap sizes: current=XXX free=XXX max=XXX
    JVM args: -javaagent:/opt/scripts/jmx_prometheus_javaagent-0.13.0.jar=9110:/opt/scripts/activemq.yml
Extensions classpath:
  [/opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/lib,/opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/lib/camel,/opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/lib/optional,/opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/lib/web,/opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/lib/extra]
ACTIVEMQ_HOME: /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq
ACTIVEMQ_BASE: /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq
ACTIVEMQ_CONF: /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/conf
ACTIVEMQ_DATA: /opt/docker/overlay2/a378910e4d6ca8e33b23502c106124644296b281e99343f14470dda79a326ff5/merged/opt/activemq/data

ActiveMQ 5.15.2
For help or more information please see: http://activemq.apache.org



Any idea? Anybody can help me? 

Jacek 1974

unread,
Jul 6, 2020, 10:10:46 PM7/6/20
to Prometheus Users
Anybody?

Wesley

unread,
Jul 6, 2020, 10:15:05 PM7/6/20
to promethe...@googlegroups.com
what's the log and error message?

Jacek 1974 wrote:
> Anybody?

Jacek 1974

unread,
Jul 7, 2020, 2:30:09 AM7/7/20
to Prometheus Users
As you see in the first post thats all, there is nothing more. Theoretically it shoul work with cmd (github.com/prometheus/jmx_exporter):
java -javaagent:./jmx_prometheus_javaagent-0.13.0.jar=8080:config.yaml -jar yourJar.jar

but it doesn't work in my case. 

Jacek 1974

unread,
Jul 9, 2020, 11:32:57 PM7/9/20
to Prometheus Users
Hi, anybody can help?
Reply all
Reply to author
Forward
0 new messages