# This is the monitoring configuration for Cassandra 2.1.x and earlier.
# Look for CASSANDRA_HOST and CASSANDRA_PORT to adjust your configuration file.
LoadPlugin java
JVMARG "-Djava.class.path=/opt/stackdriver/collectd/share/collectd/java/collectd-api.jar:/opt/stackdriver/collectd/share/collectd/java/generic-jmx.jar"
LoadPlugin "org.collectd.java.GenericJMX"
ObjectName "org.apache.cassandra.db:type=StorageService"
Type "gauge"
InstancePrefix "storage_service-load"
Table false
Attribute "Load"
Type "counter"
InstancePrefix "storage_service-exception_count"
Table false
Attribute "ExceptionCount"
ObjectName "org.apache.cassandra.db:type=Commitlog"
Type "gauge"
InstancePrefix "commitlog-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "commitlog-completed_tasks"
Table false
Attribute "CompletedTasks"
Type "gauge"
InstancePrefix "commitlog-total_size"
Table false
Attribute "TotalCommitlogSize"
ObjectName "org.apache.cassandra.db:type=CompactionManager"
Type "gauge"
InstancePrefix "compaction_manager-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "compaction_manager-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.request:type=MutationStage"
Type "gauge"
InstancePrefix "mutation_stage-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "mutation_stage-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "mutation_stage-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "mutation_stage-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.request:type=ReadRepairStage"
Type "gauge"
InstancePrefix "read_repair_stage-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "read_repair_stage-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "read_repair_stage-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "read_repair_stage-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.request:type=ReadStage"
Type "gauge"
InstancePrefix "read_stage-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "read_stage-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "read_stage-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "read_stage-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.request:type=ReplicateOnWriteStage"
Type "gauge"
InstancePrefix "replicate_on_write_stage-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "replicate_on_write_stage-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "replicate_on_write_stage-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "replicate_on_write_stage-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.request:type=RequestResponseStage"
Type "gauge"
InstancePrefix "request_response_stage-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "request_response_stage-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "request_response_stage-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "request_response_stage-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.internal:type=AntiEntropySessions"
Type "gauge"
InstancePrefix "anti_entropy_sessions-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "anti_entropy_sessions-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "anti_entropy_sessions-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "anti_entropy_sessions-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.internal:type=AntiEntropyStage"
Type "gauge"
InstancePrefix "anti_entropy_stage-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "anti_entropy_stage-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "anti_entropy_stage-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "anti_entropy_stage-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.internal:type=FlushWriter"
Type "gauge"
InstancePrefix "flush_writer-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "flush_writer-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "flush_writer-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "flush_writer-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.internal:type=GossipStage"
Type "gauge"
InstancePrefix "gossip_stage-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "gossip_stage-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "gossip_stage-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "gossip_stage-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.internal:type=HintedHandoff"
Type "gauge"
InstancePrefix "hinted_handoff-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "hinted_handoff-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "hinted_handoff-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "hinted_handoff-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.internal:type=InternalResponseStage"
Type "gauge"
InstancePrefix "internal_response_stage-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "internal_response_stage-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "internal_response_stage-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "internal_response_stage-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.internal:type=MemtablePostFlusher"
Type "gauge"
InstancePrefix "memtable_post_flusher-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "memtable_post_flusher-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "memtable_post_flusher-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "memtable_post_flusher-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.internal:type=MigrationStage"
Type "gauge"
InstancePrefix "migration_stage-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "migration_stage-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "migration_stage-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "migration_stage-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.internal:type=MiscStage"
Type "gauge"
InstancePrefix "misc_stage-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "misc_stage-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "misc_stage-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "misc_stage-completed_tasks"
Table false
Attribute "CompletedTasks"
ObjectName "org.apache.cassandra.internal:type=StreamStage"
Type "gauge"
InstancePrefix "stream_stage-active_count"
Table false
Attribute "ActiveCount"
Type "gauge"
InstancePrefix "stream_stage-currently_blocked_tasks"
Table false
Attribute "CurrentlyBlockedTasks"
Type "gauge"
InstancePrefix "stream_stage-pending_tasks"
Table false
Attribute "PendingTasks"
Type "counter"
InstancePrefix "stream_stage-completed_tasks"
Table false
Attribute "CompletedTasks"
# When using non-standard Cassandra configurations, replace the below with
#ServiceURL "service:jmx:rmi:///jndi/rmi://CASSANDRA_HOST:CASSANDRA_PORT/jmxrmi"
ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:7199/jmxrmi"
InstancePrefix "cassandra"
Collect "cassandra_storageservice"
Collect "cassandra_commitlog"
Collect "cassandra_compactionmanager"
Collect "cassandra_stage_MutationStage"
Collect "cassandra_stage_ReadRepairStage"
Collect "cassandra_stage_ReadStage"
Collect "cassandra_stage_ReplicateOnWriteStage"
Collect "cassandra_stage_RequestResponseStage"
Collect "cassandra_internal_AntiEntropySessions"
Collect "cassandra_internal_AntiEntropyStage"
Collect "cassandra_internal_FlushWriter"
Collect "cassandra_internal_GossipStage"
Collect "cassandra_internal_HintedHandoff"
Collect "cassandra_internal_InternalResponseStage"
Collect "cassandra_internal_MemtablePostFlusher"
Collect "cassandra_internal_MigrationStage"
Collect "cassandra_internal_MiscStage"
Collect "cassandra_internal_StreamStage"
ObjectName "java.lang:type=Threading"
Type "gauge"
InstancePrefix "threading-daemon_thread_count"
Table false
Attribute "DaemonThreadCount"
Type "gauge"
InstancePrefix "threading-thread_count"
Table false
Attribute "ThreadCount"
Type "gauge"
InstancePrefix "threading-peak_thread_count"
Table false
Attribute "PeakThreadCount"
ObjectName "java.lang:type=Memory"
Type "memory"
InstancePrefix "memory-heap_usage_committed"
Table false
Attribute "HeapMemoryUsage.committed"
Type "memory"
InstancePrefix "memory-non_heap_usage_committed"
Table false
Attribute "NonHeapMemoryUsage.committed"
Type "memory"
InstancePrefix "memory-heap_usage_used"
Table false
Attribute "HeapMemoryUsage.used"
Type "memory"
InstancePrefix "memory-non_heap_usage_used"
Table false
Attribute "NonHeapMemoryUsage.used"
Type "memory"
InstancePrefix "memory-heap_usage_max"
Table false
Attribute "HeapMemoryUsage.max"
Type "memory"
InstancePrefix "memory-non_heap_usage_max"
Table false
Attribute "NonHeapMemoryUsage.max"
ObjectName "java.lang:type=Runtime"
Type "counter"
InstancePrefix "runtime-uptime"
Table false
Attribute "Uptime"
ObjectName "java.lang:type=OperatingSystem"
Type "gauge"
InstancePrefix "os-open_fd_count"
Table false
Attribute "OpenFileDescriptorCount"
Type "counter"
InstancePrefix "os-process_cpu_time"
Table false
Attribute "ProcessCpuTime"
ObjectName "java.lang:type=GarbageCollector,name=*"
InstanceFrom "name"
Type "counter"
InstancePrefix "gc-collection_count"
Table false
Attribute "CollectionCount"
Type "counter"
InstancePrefix "gc-collection_time"
Table false
Attribute "CollectionTime"
# When using non-standard Cassandra configurations, replace the below with
#ServiceURL "service:jmx:rmi:///jndi/rmi://CASSANDRA_HOST:CASSANDRA_PORT/jmxrmi"
ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:7199/jmxrmi"
InstancePrefix "jvm"
Collect "jvm_localhost_Threading"
Collect "jvm_localhost_Memory"
Collect "jvm_localhost_Runtime"
Collect "jvm_localhost_os"
Collect "jvm_localhost_gc"
LoadPlugin match_regex
LoadPlugin target_set
LoadPlugin target_replace
Plugin "^GenericJMX$"
PluginInstance "^cassandra.*$"
PluginInstance "cassandra" ""
Plugin "cassandra"
Target "return"
Chain "GenericJMX_cassandra"
PreCacheChain "PreCache"
Plugin "^GenericJMX$"
PluginInstance "^jvm.*$"
PluginInstance "jvm" ""
Plugin "jvm"
Target "return"
Chain "GenericJMX_jvm"
PreCacheChain "PreCache"