Java agent and jmx metrics

Hi im struggling with metrics from jmx and jboss eap.

i would like to get the same metrics as we get from Prometheus:

  • "jboss.as:deployment=,subsystem=ejb3,"
  • "jboss.as:deployment=*,subsystem=undertow"
  • "jboss.as:deployment=,subsystem=undertow,servlet="
  • "jboss.as:deployment=,subdeployment=,subsystem=ejb3,*"
  • "jboss.as:deployment=,subdeployment=,subsystem=undertow"
  • "jboss.as:deployment=,subdeployment=,subsystem=undertow,servlet=*"
  • "jboss.as:subsystem=datasources,data-source=*,statistics=jdbc"
  • "jboss.as:subsystem=datasources,data-source=*,statistics=pool"
  • "jboss.as:subsystem=datasources,xa-data-source=*,statistics=jdbc"
  • "jboss.as:subsystem=datasources,xa-data-source=*,statistics=pool"
  • "jboss.as:subsystem=messaging-activemq,server=,jms-queue="
  • "jboss.as:subsystem=messaging-activemq,server=,jms-topic="
  • "jboss.as:subsystem=transactions"
  • "jboss.as:subsystem=undertow,server=,http-listener="

i got datasources working but nothing else:
object_name[jboss.as:subsystem=datasources,data-source=*,statistics=pool] attribute[AvailableCount] attribute[ActiveCount] attribute[InUseCount] attribute[TimedOut] attribute[WaitCount]

Do you have any examples for getting info about jms queue/topics and sessions???

Hi @johanostberg,

Are those all the JMX object names that you want to monitor (and that you might already capture through Prometheus) ?

From what I understand in your case

  • all of the datasources (starting with jboss.as:subsystem=datasources) are properly captured as expected.
  • all objects starting with the following prefixes are not captured
    • jboss.as:subsystem=messaging
    • jboss.as:subsystem=transactions
    • jboss.as:subsystem=undertow

We had a few issues with JBoss and JMX metrics in the past where JMX notifications are not consistent:

  • For all of those attributes, can you tell us if are you able to read them using jconsole or visualvm tools from the JMX tree ?
  • does the issue also happens when using the runtime attach, thus without the -javaagent option and after JBoss server startup ?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.