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:

- module: jolokia
  metricsets: ["jmx"]
  period: 10s
  hosts: ["localhost"]
  namespace: "metrics"
  #username: "user"
  #password: "secret"
    - mbean: 'java.lang:type=Runtime'
        - attr: Uptime
          field: uptime
    - mbean: 'java.lang:type=Memory'
        - 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. It also supports the options described in Standard HTTP config options.


The following metricsets are available: