X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2FGenericJMX.conf;h=f4dd8f0ead954d5281be573d641f6ca20a1cb322;hb=87cdeb24ec6f02f623c9077e35904c0b7bec4a93;hp=b88d1a6b4828d732c6c4060b06875bb56312a4f6;hpb=0b9800153cec24ed79c71beaac265e33ee3001ba;p=collectd.git
diff --git a/contrib/GenericJMX.conf b/contrib/GenericJMX.conf
index b88d1a6b..f4dd8f0e 100644
--- a/contrib/GenericJMX.conf
+++ b/contrib/GenericJMX.conf
@@ -36,9 +36,10 @@
Type "gauge"
+ InstancePrefix "loaded_classes"
+ #InstanceFrom ""
Table false
Attribute "LoadedClassCount"
- InstancePrefix "loaded_classes"
@@ -50,43 +51,43 @@
Type "total_time_in_ms"
+ InstancePrefix "compilation_time"
+ #InstanceFrom ""
Table false
Attribute "TotalCompilationTime"
- InstancePrefix "compilation_time"
# Garbage collector information
- # Plugin instance:
+ ObjectName "java.lang:type=GarbageCollector,*"
InstancePrefix "gc-"
InstanceFrom "name"
- ObjectName "java.lang:type=GarbageCollector,name=*"
Type "invocations"
+ #InstancePrefix ""
+ #InstanceFrom ""
Table false
Attribute "CollectionCount"
- # Type instance:
- #InstancePrefix ""
Type "total_time_in_ms"
+ InstancePrefix "collection_time"
+ #InstanceFrom ""
Table false
Attribute "CollectionTime"
- # Type instance:
- InstancePrefix "collection_time"
# # Not that useful, therefore commented out.
#
# Type "threads"
+# #InstancePrefix ""
+# #InstanceFrom ""
# Table false
# # Demonstration how to access composite types
# Attribute "LastGcInfo.GcThreadCount"
-# # Type instance:
-# #InstancePrefix ""
#
@@ -99,33 +100,123 @@
# Creates four values: committed, init, max, used
Type "memory"
+ #InstancePrefix ""
+ #InstanceFrom ""
Table true
Attribute "HeapMemoryUsage"
- # Type instance:
InstancePrefix "heap-"
# Creates four values: committed, init, max, used
Type "memory"
+ #InstancePrefix ""
+ #InstanceFrom ""
Table true
Attribute "NonHeapMemoryUsage"
- # Type instance:
- InstancePrefix "nonheap-"
# Memory usage by memory pool.
- ObjectName "java.lang:type=MemoryPool,name=*"
+ ObjectName "java.lang:type=MemoryPool,*"
InstancePrefix "memory_pool-"
InstanceFrom "name"
Type "memory"
+ #InstancePrefix ""
+ #InstanceFrom ""
Table true
Attribute "Usage"
+
+
+
+ ### MBeans by Catalina / Tomcat ###
+ # The global request processor (summary for each request processor)
+
+ ObjectName "Catalina:type=GlobalRequestProcessor,*"
+ InstancePrefix "request_processor-"
+ InstanceFrom "name"
+
+
+ Type "io_octets"
+ InstancePrefix "global"
+ #InstanceFrom ""
+ Table false
+ Attribute "bytesReceived"
+ Attribute "bytesSent"
+
+
+
+ Type "total_requests"
+ InstancePrefix "global"
+ #InstanceFrom ""
+ Table false
+ Attribute "requestCount"
+
+
+
+ Type "total_time_in_ms"
+ InstancePrefix "global-processing"
+ #InstanceFrom ""
+ Table false
+ Attribute "processingTime"
+
+
+
+ # Details for each request processor
+
+ ObjectName "Catalina:type=RequestProcessor,*"
+ InstancePrefix "request_processor-"
+ InstanceFrom "worker"
+
+
+ Type "io_octets"
#InstancePrefix ""
+ InstanceFrom "name"
+ Table false
+ Attribute "bytesReceived"
+ Attribute "bytesSent"
+
+
+
+ Type "total_requests"
+ #InstancePrefix ""
+ InstanceFrom "name"
+ Table false
+ Attribute "requestCount"
+
+
+
+ Type "total_time_in_ms"
+ InstancePrefix "processing-"
+ InstanceFrom "name"
+ Table false
+ Attribute "processingTime"
+
+
+
+ # Thread pool
+
+ ObjectName "Catalina:type=ThreadPool,*"
+ InstancePrefix "request_processor-"
+ InstanceFrom "name"
+
+
+ Type "threads"
+ InstancePrefix "total"
+ #InstanceFrom ""
+ Table false
+ Attribute "currentThreadCount"
+
+
+
+ Type "threads"
+ InstancePrefix "running"
+ #InstanceFrom ""
+ Table false
+ Attribute "currentThreadsBusy"
@@ -133,8 +224,10 @@
# Connection blocks #
#####################
- Host "localhost"
ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:17264/jmxrmi"
+ User "monitorRole"
+ Password "queeZie1"
+ Host "localhost"
Collect "classes"
Collect "compilation"
Collect "garbage_collector"