Re: [prometheus-users] JMX exporter problem, can't run process

2020-07-09 Thread Jacek 1974
Hi, anybody can help?

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/979f6fb3-310f-450c-8d1e-de2f96b8e07co%40googlegroups.com.


Re: [prometheus-users] JMX exporter problem, can't run process

2020-07-07 Thread Jacek 1974
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. 



W dniu wtorek, 7 lipca 2020 04:15:05 UTC+2 użytkownik Wesley napisał:
>
> what's the log and error message? 
>
> Jacek 1974 wrote: 
> > Anybody? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ee0cb395-4ae7-4595-b113-0edbc9c19c11o%40googlegroups.com.


Re: [prometheus-users] JMX exporter problem, can't run process

2020-07-06 Thread Wesley

what's the log and error message?

Jacek 1974 wrote:

Anybody?


--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/6e1ae167-1c31-49d9-0f34-cda03ca2e885%40freenetMail.de.


[prometheus-users] JMX exporter problem, can't run process

2020-07-06 Thread Jacek 1974
Anybody?

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/c055ca5b-8dfe-4441-9396-639cc0697650o%40googlegroups.com.


[prometheus-users] JMX exporter problem, can't run process

2020-07-06 Thread Jacek 1974
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 xx 
/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 ] [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   - 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= (default is: 
'service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi')
-Dactivemq.jmx.user=
-Dactivemq.jmx.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 x /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: