<% @path = "/etc/collectd/conf.d/cassandra.conf" %> LoadPlugin java # required JVM argument is the classpath # JVMArg "-Djava.class.path=/installpath/collectd/share/collectd/java" # Since version 4.8.4 (commit c983405) the API and GenericJMX plugin are # provided as .jar files. JVMARG "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar:/usr/share/collectd/java/generic-jmx.jar" LoadPlugin "org.collectd.java.GenericJMX" # Standard Java mbeans # Memory usage by memory pool. ObjectName "java.lang:type=MemoryPool,*" InstancePrefix "memory_pool-" InstanceFrom "name" Type "memory" #InstancePrefix "" #InstanceFrom "" Table true Attribute "Usage" # Heap memory usage ObjectName "java.lang:type=Memory" #InstanceFrom "" InstancePrefix "memory-heap" # Creates four values: committed, init, max, used Type "memory" #InstancePrefix "" #InstanceFrom "" Table true Attribute "HeapMemoryUsage" # Non-heap memory usage ObjectName "java.lang:type=Memory" #InstanceFrom "" InstancePrefix "memory-nonheap" # Creates four values: committed, init, max, used Type "memory" #InstancePrefix "" #InstanceFrom "" Table true Attribute "NonHeapMemoryUsage" ObjectName "java.lang:type=GarbageCollector,*" InstancePrefix "gc-" InstanceFrom "name" Type "invocations" #InstancePrefix "" #InstanceFrom "" Table false Attribute "CollectionCount" Type "total_time_in_ms" InstancePrefix "collection_time" #InstanceFrom "" Table false Attribute "CollectionTime" # Cassandra specific mbeans ObjectName "org.apache.cassandra.db:type=Caches,keyspace=*,cache=*" InstancePrefix "cache-" InstanceFrom "cache" Type "gauge" InstancePrefix "RecentHitRate" Attribute "RecentHitRate" ObjectName "org.apache.cassandra.db:type=ColumnFamilies,keyspace=*,columnfamily=*" InstancePrefix "column_family-" InstanceFrom "columnfamily" Type "gauge" InstancePrefix "LiveDiskSpaceUsed" Attribute "LiveDiskSpaceUsed" Type "gauge" InstancePrefix "LiveSSTableCount" Attribute "LiveSSTableCount" Type "derive" InstancePrefix "TotalReadLatencyMicros" Attribute "TotalReadLatencyMicros" Type "derive" InstancePrefix "TotalWriteLatencyMicros" Attribute "TotalWriteLatencyMicros" Type "derive" InstancePrefix "ReadCount" Attribute "ReadCount" Type "derive" InstancePrefix "WriteCount" Attribute "WriteCount" ObjectName "org.apache.cassandra.db:type=CompactionManager" InstancePrefix "compaction_manager" Type "derive" InstancePrefix "BytesCompacted" Attribute "BytesCompacted" Type "gauge" InstancePrefix "PendingTasks" Attribute "PendingTasks" ObjectName "org.apache.cassandra.internal:type=FlushWriter" InstancePrefix "flush_writer" Type "gauge" InstancePrefix "PendingTasks" Attribute "PendingTasks" ObjectName "org.apache.cassandra.internal:type=HintedHandoff" InstancePrefix "hinted_handoff" Type "gauge" InstancePrefix "PendingTasks" Attribute "PendingTasks" ObjectName "org.apache.cassandra.request:type=*" InstancePrefix "request_stage-" InstanceFrom "type" Type "gauge" InstancePrefix "PendingTasks" Attribute "PendingTasks" ObjectName "org.apache.cassandra.db:type=StorageProxy" InstancePrefix "storage_proxy" Type "derive" InstancePrefix "TotalReadLatencyMicros" Attribute "TotalReadLatencyMicros" Type "derive" InstancePrefix "TotalWriteLatencyMicros" Attribute "TotalWriteLatencyMicros" Type "derive" InstancePrefix "ReadOperations" Attribute "ReadOperations" Type "derive" InstancePrefix "WriteOperations" Attribute "WriteOperations" Host "<%= rubber_env.host %>" ServiceURL "service:jmx:rmi:///jndi/rmi://<%= rubber_env.host %>:<%= rubber_env.cassandra_jmx_port %>/jmxrmi" Collect "memory_pool" Collect "memory_heap" Collect "memory_nonheap" Collect "garbage_collector" Collect "cache" Collect "column_family" Collect "compaction_manager" Collect "flush_writer" Collect "hinted_handoff" Collect "request_stage" Collect "storage_proxy"