Hello Beats team!
I am trying the Jolokia module on 2 different jmx env.
I got for both the same error message in kibana:
Cannot unmarshal json response: invalid character '\x00' looking for beginning of value
I use that docker to simulate a jmx:
FROM java:8
MAINTAINER "Alexei Novikov <alexeinov@gmail.com>"
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
RUN javac Hammer.java
CMD ["java", \
"-Dcom.sun.management.jmxremote", \
"-Dcom.sun.management.jmxremote.port=9010", \
# Uncomment this line when running JMX console on a different host
#"-Dcom.sun.management.jmxremote.rmi.port=9010", \
"-Dcom.sun.management.jmxremote.local.only=false", \
"-Dcom.sun.management.jmxremote.authenticate=false", \
"-Dcom.sun.management.jmxremote.ssl=false", \
# Uncomment this line when running JMX console on a different host, use a name of the host where Docker is running
#"-Djava.rmi.server.hostname=192.168.0.101", \
"Hammer"]
EXPOSE 9010
And this minimum metricbeat conf:
metricbeat.modules:
- module: jolokia
metricsets: ["jmx"]
enabled: true
period: 1s
hosts: ["jmx:9010"]
namespace: "metrics"
#path: "/jolokia/?ignoreErrors=true&canonicalNaming=true"
jmx.mappings:
- mbean: 'java.lang:type=Runtime'
attributes:
- attr: Uptime
field: uptime
Event is send and coming to the right index
fetches.jolokia-jmx.events=30 fetches.jolokia-jmx.failures=30
but with error: Cannot unmarshal json response: invalid character '\x00' looking for beginning of value
I am on 5.4.1 for elk+metricbeat.
On a totally different jmx server in another env, I got the same error. Probably my metricbeat/(es template?) is missing something...
I tried to send to logstash and directly to es: same result.
Similar to Metricbeat 5.4.0 Jolokia module
Thank you for your help & good weekend!
Greg.