I Have a Matching Bean for my JMX integration but nothing on Collect !

Trouble setting up your JMX integration ? Here are a few great articles to get you started : 

Now, if everything is set up properly as described in the above articles, and your metric appears in the list_matching_attributes.log but not in the output of  sudo /etc/init.d/datadog-agent jmx collect command, there is probably an issue with the metric_type your using. 

Here is the output of the  list_matching_attributes.log file :

Matching: 0/350. Bean name: Hadoop:service=HBase,name=Master,sub=Server - Attribute name: tag.isActiveMaster  - Attribute type: java.lang.String

How can I solve this? 

Go to you jmxfetch.log file and search for errors similar to these ones : 

2016-12-05 03:08:33,261 | WARN | JMXAttribute | Unable to get metrics from Hadoop:service=HBase,name=Master,sub=Server - tag.isActiveMaster
java.lang.NumberFormatException: For input string: "false"
[...]

This means that your  Hadoop:service=HBase,name=Master,sub=Server - tag.isActiveMaster is returning string values.

Check your jmx.yaml file, the following excerpt should show something similar: 

The java.lang.String metric_type confirms the issue you were seeing in the logs. 

To resolve this issue please use this gist that we created to update your file accordingly. 

That means you'll probably need to change the associated metric_type , and have your jmx.yaml look like this : 

Jmxfetch will know it's a string and will use this rule to transform that into a numeric metric. 

Still having issue ? Please send over a description of your problem to support@datadoghq.com along with a copy of your logs and config through a flare

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk