2015-11-03 21:00:23 +00:00
|
|
|
|
# Telegraf plugin: Jolokia
|
|
|
|
|
|
2016-04-05 19:54:02 +00:00
|
|
|
|
#### Configuration
|
|
|
|
|
|
|
|
|
|
```toml
|
|
|
|
|
[[inputs.jolokia]]
|
|
|
|
|
## This is the context root used to compose the jolokia url
|
|
|
|
|
context = "/jolokia/read"
|
|
|
|
|
|
|
|
|
|
## List of servers exposing jolokia read service
|
|
|
|
|
[[inputs.jolokia.servers]]
|
|
|
|
|
name = "stable"
|
|
|
|
|
host = "192.168.103.2"
|
|
|
|
|
port = "8180"
|
|
|
|
|
# username = "myuser"
|
|
|
|
|
# password = "mypassword"
|
|
|
|
|
|
|
|
|
|
## List of metrics collected on above servers
|
|
|
|
|
## Each metric consists in a name, a jmx path and either
|
|
|
|
|
## a pass or drop slice attribute.
|
|
|
|
|
## This collect all heap memory usage metrics.
|
|
|
|
|
[[inputs.jolokia.metrics]]
|
|
|
|
|
name = "heap_memory_usage"
|
|
|
|
|
jmx = "/java.lang:type=Memory/HeapMemoryUsage"
|
|
|
|
|
```
|
2015-11-03 21:00:23 +00:00
|
|
|
|
|
|
|
|
|
#### Description
|
|
|
|
|
|
|
|
|
|
The Jolokia plugin collects JVM metrics exposed as MBean's attributes through jolokia REST endpoint. All metrics
|
|
|
|
|
are collected for each server configured.
|
|
|
|
|
|
|
|
|
|
See: https://jolokia.org/
|
|
|
|
|
|
|
|
|
|
# Measurements:
|
|
|
|
|
Jolokia plugin produces one measure for each metric configured, adding Server's `name`, `host` and `port` as tags.
|