Hi,
I'm trying to use the Jolokia module. When I try to start metricbeats it gives me an error "missing required field accessing 'metricbeat.modules.1.jmx.mappings'" when I try to start metricbeats.
Thanks. That worked. But now I get this error
"error": "Cannot unmarshal json response: invalid character '\x00' looking for beginning of value",
"jolokia": {
"jmx": {}
},
"metricset": {
"host": "localhost:8474",
"module": "jolokia",
"name": "jmx",
"rtt": 1109
},
"type": "metricsets"
}
Interesting. Any chance you could fetch the output manually and potentially paste it here on in a gist. Would be nice to do some testing on it and see if we have an unexpected output here.
Do we need to have Jolokia agent/client installed on the server? We have the JEE Agent (WAR) installed on the server which is described on here https://jolokia.org/reference/html/agents.html. There's no errors in the logs but none of the fields are coming through to the index pattern even after refreshing the field list. I was wondering if you have any suggestions?
Could you try it with only 1 Mbean, for example the Runtime one and see if that works?
You defined the path which is identical to the default path. Should not have any affect, but perhaps leave it out?
Could you check what you get if you fetch the following url in your browser or over curl: http://localhost:8778/jolokia/?ignoreErrors=true&canonicalNaming=false Can you paste the output here?
Please change the port to 8474 as you seem to have a different port.
I apologize for my late reply. I figured out where the issue was. We needed to use the JVM Agent listed under 3.4. JVM Agent on this tutorial for Jolokia https://jolokia.org/reference/html/agents.html#agents-jvm . Then set what port we wanted to use to get the metrics with Metricbeat. Thank you for your help with this.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.