Jolokia module not found exception

Hi All,

I have installed jolokia agent and attached to the java process successfully . but in metric beat yml i have specified following configuration and getting error please advice me how to install jolokia module in metric beta.

configuration file:

  • module: jolokia
    metricsets: ["jmx"]
    enabled: true
    period: 10s
    namespace: "metrics"
    hosts: ["10.10.1.36:8778"]
    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

getting following error on running metric beat

Exiting: 1 error: metricset 'jolokia/jmx' is not registered, module not found

please help me in this

thanks
phani

Hello @Phani_Nadiminti what version of Metricbeat are you running?
You can get the current version by running:

./metricbeat version

Hi @pierhugues,

metric beat version is

metricbeat version 5.1.2 (amd64), libbeat 5.1.2

@Phani_Nadiminti

The metricbeat jolikia/jmx module was added in 5.4.0 but has gone through multiple improvements since the first release. I strongly suggest that you install the latest version of our stack which is now 6.3.0.

Hi @pierhugues

Okay thank you i will try it and post the results.

Hi @pierhugues,

Thank you for advice it is working now after using the current beats version i am able to pull jvm metrics to elasticsearch.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.