JBoss monitor with JMX-Prometheus

89 views
Skip to first unread message

Dương Hưng

unread,
Jan 3, 2024, 3:43:52 PM1/3/24
to Prometheus Users
Hi Everyone,

As the instuction in github web page to run as a Java agent, download one of the JARs and run:
java -javaagent:./jmx_prometheus_javaagent-0.19.0.jar=12345:config.yaml -jar yourJar.jar

I want to know in JBoss which jar file I need to add in that command line. And how to write config.yaml file.

Thank you all

Doug Hoard

unread,
Jan 4, 2024, 9:35:31 PM1/4/24
to Prometheus Users
I believe that JBoss uses an XML file to define Java / JVM options. You will have to consult JBoss documentation to understand how to add Java command line arguments.

I would start with httpserver_sample_config.yml as a starting point to understand what metrics are available/what you want to capture. Based on this output, you can write your specific rules.
Reply all
Reply to author
Forward
0 new messages