Hi Team,
I am using simple commands to monitor JVM attributes with the help of metricbeat.
- module: jolokia
metricsets: ["jmx"]
enabled: true
period: 1s
hosts: ["host:8075"]
namespace: "metrics"
jmx.mappings:
- mbean: 'java.lang:type=Runtime'
attributes:
- attr: Uptime
field: uptime
- mbean: 'java.lang:type=GarbageCollector,name=ConcurrentMarkSweep'
attributes:
- attr: CollectionTime
field: gc.cms_collection_time
- attr: CollectionCount
field: gc.cms_collection_count
- mbean: 'java.lang:type=Memory'
attributes:
- attr: HeapMemoryUsage
field: memory.heap_usage
- attr: NonHeapMemoryUsage
field: memory.non_heap_usage
Here, 8075 is my JMX port.
I am getting below error in Kibana:
failed to unmarshal jolokia JSON response '': invalid character '\x00' looking for beginning of value
Let me know how to resolve this issue.