Skip to content
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

Did not find attribute configurationAsXmlString in jboss6.4.9 #848

Open
raagulrakesh opened this issue Jul 18, 2023 · 3 comments
Open

Did not find attribute configurationAsXmlString in jboss6.4.9 #848

raagulrakesh opened this issue Jul 18, 2023 · 3 comments

Comments

@raagulrakesh
Copy link

raagulrakesh commented Jul 18, 2023

Hi,
After enabling jmx_prometheus_javaagent-0.19.0.jar in jboss 6.4.9

My config.yaml
lowercaseOutputName: true
lowercaseOutputLabelNames: true
whitelistObjectNames: [":"]

Waring message

13:09:38,394 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://0.0.0.0:9990/management
13:09:38,394 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://0.0.0.0:9990
13:09:38,394 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.4.9.GA (AS 7.5.9.Final-redhat-2) started in 40346ms - Started 1269 of 1297 services (63 services are lazy, passive or on-demand)
13:09:58,051 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:09:58,336 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:10:56,669 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:10:56,946 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:11:56,591 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:11:56,857 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:12:56,574 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:12:56,839 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:13:56,570 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:13:56,841 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:14:56,489 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:14:56,753 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:15:56,609 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:15:56,881 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:16:56,642 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:16:56,909 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:17:56,551 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString
13:17:56,824 WARN [org.infinispan.jmx.ResourceDMBean] (prometheus-http-1-1) ISPN000036: Did not find attribute configurationAsXmlString

How to avoid these warning

@dhoard
Copy link
Collaborator

dhoard commented Jul 19, 2023

This appears to be an issue with JBoss 6.4.9 configuration.

The exporter finds the JMX MBean, gets the MBean attributes, then tries to call the MBean to get each attribute value. which is failing for the configurationAsXmlString value

Given the attribute name configurationAsXmlString

  1. I suspect it returns a String containing XML, which would be ignored
  2. Is probably protected by security in JBoss

@raagulrakesh
Copy link
Author

HI @dhoard
Thanks for the reply

My JBoss server log file is full of this warning message. how can we remove this warning message in my log file

@dhoard
Copy link
Collaborator

dhoard commented Jul 19, 2023

Configuration of JBoss JMX access will need to be resolved via JBoss support/forums. This is out of scope from the exporter perspective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants