Jolokia moduleedit

This is the Jolokia module.

Example configurationedit

The Jolokia module supports the standard configuration options that are described in Specify which modules to run. Here is an example configuration:

metricbeat.modules:
- module: jolokia
  metricsets: ["jmx"]
  period: 10s
  hosts: ["localhost"]
  namespace: "metrics"
  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

This module supports TLS connection when using ssl config field, as described in Specify SSL settings.

Metricsetsedit

The following metricsets are available: