From 1af9415225ccbcf70338d95833d5e8f0458d6778 Mon Sep 17 00:00:00 2001 From: Shahzheeb Khan Date: Fri, 8 Apr 2016 11:54:32 -0400 Subject: [PATCH] Adding few metrics example in jolokia plugin Adding few metrics example in jolokia plugin --- plugins/inputs/jolokia/jolokia.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/inputs/jolokia/jolokia.go b/plugins/inputs/jolokia/jolokia.go index a65f5ff8f..15a01d5de 100644 --- a/plugins/inputs/jolokia/jolokia.go +++ b/plugins/inputs/jolokia/jolokia.go @@ -65,6 +65,16 @@ func (j *Jolokia) SampleConfig() string { [[inputs.jolokia.metrics]] name = "heap_memory_usage" 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" ` }