32 lines
981 B
Text
32 lines
981 B
Text
# Module: jolokia
|
|
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/6.5/metricbeat-module-jolokia.html
|
|
|
|
- module: jolokia
|
|
#metricsets: ["jmx"]
|
|
period: 10s
|
|
hosts: ["localhost"]
|
|
namespace: "metrics"
|
|
#path: "/jolokia/?ignoreErrors=true&canonicalNaming=false"
|
|
#username: "user"
|
|
#password: "secret"
|
|
jmx.mappings:
|
|
#- mbean: 'java.lang:type=Runtime'
|
|
# attributes:
|
|
# - attr: Uptime
|
|
# field: uptime
|
|
#- mbean: 'java.lang:type=Memory'
|
|
# attributes:
|
|
# - attr: HeapMemoryUsage
|
|
# field: memory.heap_usage
|
|
# - attr: NonHeapMemoryUsage
|
|
# field: memory.non_heap_usage
|
|
# GC Metrics - this depends on what is available on your JVM
|
|
#- mbean: 'java.lang:type=GarbageCollector,name=ConcurrentMarkSweep'
|
|
# attributes:
|
|
# - attr: CollectionTime
|
|
# field: gc.cms_collection_time
|
|
# - attr: CollectionCount
|
|
# field: gc.cms_collection_count
|
|
|
|
jmx.application:
|
|
jmx.instance:
|