Monitoring and collecting data from Jolokia

Jolokia is remote JMX with JSON over HTTP. It’s a JMX-HTTP bridge giving an alternative to JSR-160 connectors. It is an agent based approach with support for many platforms. In addition to basic JMX operations it enhances JMX remoting with unique features like bulk requests and fine grained security policies.

How it works

This plugin will allow you to extract metrics from Jolokia compatible APIs. It will capture the metrics from the metrics endpoint specified.

Installation

The plugin needs to be installed together with a CoScale agent, instructions on how to install the CoScale agent can be found here. If you want to monitor Jolokia inside Docker containers using CoScale, check out the instructions here.

Configuration

JMX Connection

Provide the JMX hostname and JMX port

Jolokia Configuration Step 1

Bean configuration

You can add custom bean names and attributes.

Jolokia Configuration Step 2

Active checks

This plugin can be configured to perform a HTTP GET on your Jolokia endpoint. This active monitoring allows us to calculate the uptime of the service and the response time of the provided URL.

Jolokia Configuration Step 3

Metrics

Jolokia

Name Unit Dimensions
Jolokia active check latency s  
Jolokia active check uptime %  
Jolokia Uptime ms Endpoint

Jolokia / Buffer Pool

Name Unit Dimensions
Jolokia BufferPool Count   Endpoint, BufferPool
Jolokia BufferPool Memory Used b Endpoint, BufferPool

Jolokia / Classes

Name Unit Dimensions
Jolokia Loaded Class Count   Endpoint
Jolokia Unloaded Class Count   Endpoint

Jolokia / CPU

Name Unit Dimensions
Jolokia Compilation Time ms Endpoint
Jolokia Process CPU time ms Endpoint

Jolokia / Garbage Collection

Name Unit Dimensions
Jolokia Garbage Collections   Endpoint, Collector
Jolokia GC Collection Time ms Endpoint, Collector

Jolokia / Memory

Name Unit Dimensions
Jolokia Memory Usage Committed b Endpoint, MemoryPool
Jolokia Memory Usage Init b Endpoint, MemoryPool
Jolokia Memory Usage Max b Endpoint, MemoryPool
Jolokia Memory Usage Used b Endpoint, MemoryPool

Jolokia / Open files

Name Unit Dimensions
Jolokia Max File Descriptor Count   Endpoint
Jolokia Open File Descriptor Count   Endpoint

Jolokia / Threads

Name Unit Dimensions
Jolokia Daemon Thread Count   Endpoint
Jolokia Started Threads   Endpoint
Jolokia Thread Count   Endpoint
Jolokia Thread CPU Time % Endpoint

Events

Name Description Attributes
JOLOKIA service state watcher State watcher status