X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2FGenericJMX.conf;h=1d3fe564f73423f7afb77d5f6c8b6b955c874b52;hb=2c437d9e9fa953b9535a98e9bb0f36f4f0bddd28;hp=61a44b0299179ae30f5e00c1d95bdfd9715d5965;hpb=c35203c82560eba66bb901aa22c5170fb8c389fb;p=collectd.git
diff --git a/contrib/GenericJMX.conf b/contrib/GenericJMX.conf
index 61a44b02..1d3fe564 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,46 +51,52 @@
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,*"
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 ""
#
+ ######################################
+ # Define the "jmx_memory" type as: #
+ # jmx_memory value:GAUGE:0:U #
+ # See types.db(5) for details. #
+ ######################################
+
# Generic heap/nonheap memory usage.
ObjectName "java.lang:type=Memory"
@@ -98,19 +105,21 @@
# Creates four values: committed, init, max, used
- Type "memory"
+ Type "jmx_memory"
+ #InstancePrefix ""
+ #InstanceFrom ""
Table true
Attribute "HeapMemoryUsage"
- # Type instance:
InstancePrefix "heap-"
# Creates four values: committed, init, max, used
- Type "memory"
+ Type "jmx_memory"
+ #InstancePrefix ""
+ #InstanceFrom ""
Table true
Attribute "NonHeapMemoryUsage"
- # Type instance:
InstancePrefix "nonheap-"
@@ -122,10 +131,99 @@
InstanceFrom "name"
- Type "memory"
+ Type "jmx_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 +231,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"