From: Florian Forster Date: Wed, 19 Aug 2009 15:15:08 +0000 (+0200) Subject: contrib/GenerixJMX.conf: Add some example configuration for Tomcat. X-Git-Tag: collectd-4.8.0~36 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=08884a5cd1038e151a1ae34733aaee48ff06a09b;p=collectd.git contrib/GenerixJMX.conf: Add some example configuration for Tomcat. Currently configured for tomcat are: * Received / sent octets for each request processor. * Number of requests. * Time spent processing queries. * Number of total/busy threads. The first three values are available as a summary for a request processor as well as detailed (for each thread). This configuration is yet untested and may contain obvious typos! --- diff --git a/contrib/GenericJMX.conf b/contrib/GenericJMX.conf index 61a44b02..45c7cf9f 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,*" 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,19 +100,20 @@ # 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-" @@ -123,9 +125,98 @@ 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 "" + #InstanceFrom "" + Table false + Attribute "bytesReceived" + Attribute "bytesSent" + + + + Type "total_requests" + #InstancePrefix "" + #InstanceFrom "" + Table false + Attribute "requestCount" + + + + Type "total_time_in_ms" + InstancePrefix "processing" + #InstanceFrom "" + Table false + Attribute "processingTime" + + + + # Details for each request processor + + ObjectName "Catalina:type=RequestProcessor,*" + InstancePrefix "request_processor-" + InstanceFrom "name" + + + Type "io_octets" + #InstancePrefix "" + InstanceFrom "worker" + Table false + Attribute "bytesReceived" + Attribute "bytesSent" + + + + Type "total_requests" + #InstancePrefix "" + InstanceFrom "worker" + Table false + Attribute "requestCount" + + + + Type "total_time_in_ms" + InstancePrefix "processing-" + InstanceFrom "worker" + 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" diff --git a/src/types.db b/src/types.db index dd37cc13..0f81a5f8 100644 --- a/src/types.db +++ b/src/types.db @@ -61,6 +61,7 @@ if_octets rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295 if_packets rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295 if_rx_errors value:COUNTER:0:4294967295 if_tx_errors value:COUNTER:0:4294967295 +invocations value:DERIVE:0:U io_octets rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295 io_packets rx:COUNTER:0:4294967295, tx:COUNTER:0:4294967295 ipt_bytes value:COUNTER:0:134217728 @@ -123,9 +124,12 @@ swap value:GAUGE:0:1099511627776 swap_io value:DERIVE:0:1099511627776 tcp_connections value:GAUGE:0:4294967295 temperature value:GAUGE:-273.15:U +threads value:GAUGE:0:U time_dispersion seconds:GAUGE:-1000000:1000000 timeleft timeleft:GAUGE:0:3600 time_offset seconds:GAUGE:-1000000:1000000 +total_requests value:DERIVE:0:U +total_time_in_ms value:DERIVE:0:U uptime value:GAUGE:0:4294967295 users users:GAUGE:0:65535 virt_cpu_total ns:COUNTER:0:256000000000