41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
|
|
[[inputs.jolokia2_agent]]
|
|
urls = ["http://localhost:8080/jolokia"]
|
|
|
|
[[inputs.jolokia2_agent.metric]]
|
|
name = "java_runtime"
|
|
mbean = "java.lang:type=Runtime"
|
|
paths = ["Uptime"]
|
|
|
|
[[inputs.jolokia2_agent.metric]]
|
|
name = "java_memory"
|
|
mbean = "java.lang:type=Memory"
|
|
paths = ["HeapMemoryUsage", "NonHeapMemoryUsage", "ObjectPendingFinalizationCount"]
|
|
|
|
[[inputs.jolokia2_agent.metric]]
|
|
name = "java_garbage_collector"
|
|
mbean = "java.lang:name=*,type=GarbageCollector"
|
|
paths = ["CollectionTime", "CollectionCount"]
|
|
tag_keys = ["name"]
|
|
|
|
[[inputs.jolokia2_agent.metric]]
|
|
name = "java_last_garbage_collection"
|
|
mbean = "java.lang:name=G1 Young Generation,type=GarbageCollector"
|
|
paths = ["LastGcInfo/duration", "LastGcInfo/GcThreadCount", "LastGcInfo/memoryUsageAfterGc"]
|
|
|
|
[[inputs.jolokia2_agent.metric]]
|
|
name = "java_threading"
|
|
mbean = "java.lang:type=Threading"
|
|
paths = ["TotalStartedThreadCount", "ThreadCount", "DaemonThreadCount", "PeakThreadCount"]
|
|
|
|
[[inputs.jolokia2_agent.metric]]
|
|
name = "java_class_loading"
|
|
mbean = "java.lang:type=ClassLoading"
|
|
paths = ["LoadedClassCount", "UnloadedClassCount", "TotalLoadedClassCount"]
|
|
|
|
[[inputs.jolokia2_agent.metric]]
|
|
name = "java_memory_pool"
|
|
mbean = "java.lang:name=*,type=MemoryPool"
|
|
paths = ["Usage", "PeakUsage", "CollectionUsage"]
|
|
tag_keys = ["name"]
|