Can't collect metrics from Jolokia module

Hello to everyone!
I downloadedjolokia-jvm-1.5.0-agent.jar and made command java -javaagent:/path/to/jolokia-jvm-<version>-agent.jar start [processId]. And it started.

- module: jolokia
  metricsets: ["jmx"]
  enabled: true
  period: 10s
  hosts: ["localhost:8778"]
  namespace: "metrics"
  path: "/jolokia/?ignoreErrors=true&canonicalNaming=false"
       - mbean: 'java.lang:type=Memory'
           - attr: HeapMemoryUsagePercent
             field: memory.heap_usage_pct
             field_type: integer
           - attr: NonHeapMemoryUsage
             field: memory.non_heap_usage
             field_type: integer

When I restart metricbeat service, I get normal log without any exception. But when metrics start to be collecting by metricbeat futher in log, I see string jolokia:["jmx";{"events":3,"failures":3}}
In Kibana I've not found any metrics with name memory.heap_usage_pct or memory.non_heap_usage
What I am doing wrong?

Can you see more errors in the logs? What version of metricbeat are you using?

I can't find any errors. Here all logs:

jolokia:["jmx";{"events":3,"failures":3}} I found in non-zero metrics

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