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?