X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=contrib%2FGenericJMX.conf;h=1d3fe564f73423f7afb77d5f6c8b6b955c874b52;hb=218c57128f2e54960133cff3e774b5ef9944068a;hp=b88d1a6b4828d732c6c4060b06875bb56312a4f6;hpb=1e4db580e37d235755de0c4a4c08ba7a6ac7bb4c;p=collectd.git
diff --git a/contrib/GenericJMX.conf b/contrib/GenericJMX.conf
index b88d1a6b..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,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 ""
#
+ ######################################
+ # 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,34 +105,125 @@
# 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-"
# Memory usage by memory pool.
- ObjectName "java.lang:type=MemoryPool,name=*"
+ ObjectName "java.lang:type=MemoryPool,*"
InstancePrefix "memory_pool-"
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"