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"
  jmx.mappings:
       - mbean: 'java.lang:type=Memory'
         attributes:
           - attr: HeapMemoryUsagePercent
             field: memory.heap_usage_pct
             field_type: integer
           - attr: NonHeapMemoryUsage
             field: memory.non_heap_usage
             field_type: integer
jmx.application:
jmx.instance:

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?

Metricbeat-6.2.3
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.