Code

contrib/GenericJMX.conf: Use the "jmx_memory" type.
authorFlorian Forster <octo@noris.net>
Wed, 9 Jun 2010 08:38:11 +0000 (10:38 +0200)
committerFlorian Forster <octo@noris.net>
Wed, 9 Jun 2010 08:38:11 +0000 (10:38 +0200)
contrib/GenericJMX.conf

index f4dd8f0ead954d5281be573d641f6ca20a1cb322..1d3fe564f73423f7afb77d5f6c8b6b955c874b52 100644 (file)
 #      </Value>
     </MBean>
 
+    ######################################
+    # Define the "jmx_memory" type as:   #
+    #   jmx_memory  value:GAUGE:0:U      #
+    # See types.db(5) for details.       #
+    ######################################
+
     # Generic heap/nonheap memory usage.
     <MBean "memory">
       ObjectName "java.lang:type=Memory"
 
       # Creates four values: committed, init, max, used
       <Value>
-        Type "memory"
+        Type "jmx_memory"
         #InstancePrefix ""
         #InstanceFrom ""
         Table true
 
       # Creates four values: committed, init, max, used
       <Value>
-        Type "memory"
+        Type "jmx_memory"
         #InstancePrefix ""
         #InstanceFrom ""
         Table true
         Attribute "NonHeapMemoryUsage"
+        InstancePrefix "nonheap-"
       </Value>
     </MBean>
 
       InstanceFrom "name"
 
       <Value>
-        Type "memory"
+        Type "jmx_memory"
         #InstancePrefix ""
         #InstanceFrom ""
         Table true