Adding few metrics example in jolokia plugin
Adding few metrics example in jolokia plugin closes #993
This commit is contained in:
parent
de82c7d5ac
commit
445946792e
|
@ -65,6 +65,16 @@ func (j *Jolokia) SampleConfig() string {
|
||||||
[[inputs.jolokia.metrics]]
|
[[inputs.jolokia.metrics]]
|
||||||
name = "heap_memory_usage"
|
name = "heap_memory_usage"
|
||||||
jmx = "/java.lang:type=Memory/HeapMemoryUsage"
|
jmx = "/java.lang:type=Memory/HeapMemoryUsage"
|
||||||
|
|
||||||
|
## This collect thread counts metrics.
|
||||||
|
[[inputs.jolokia.metrics]]
|
||||||
|
name = "thread_count"
|
||||||
|
jmx = "/java.lang:type=Threading/TotalStartedThreadCount,ThreadCount,DaemonThreadCount,PeakThreadCount"
|
||||||
|
|
||||||
|
## This collect number of class loaded/unloaded counts metrics.
|
||||||
|
[[inputs.jolokia.metrics]]
|
||||||
|
name = "class_count"
|
||||||
|
jmx = "/java.lang:type=ClassLoading/LoadedClassCount,UnloadedClassCount,TotalLoadedClassCount"
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue