From 5023a8f3f8475e29207d7d4c317ed9a6b8f37efe Mon Sep 17 00:00:00 2001 From: Alexander Chudnovets Date: Tue, 15 Jul 2014 15:19:33 -0400 Subject: [PATCH] Added collectd config files --- conf/collectd-cassandra.conf | 217 +++++++++++++++++++++++++++++++++++ conf/collectd_rrd.conf | 28 +++++ conf/collectd_slave.conf | 26 +++++ 3 files changed, 271 insertions(+) create mode 100644 conf/collectd-cassandra.conf create mode 100644 conf/collectd_rrd.conf create mode 100644 conf/collectd_slave.conf diff --git a/conf/collectd-cassandra.conf b/conf/collectd-cassandra.conf new file mode 100644 index 0000000..f122f39 --- /dev/null +++ b/conf/collectd-cassandra.conf @@ -0,0 +1,217 @@ + + 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 "devstack_cassandra" + ServiceURL "service:jmx:rmi:///jndi/rmi://127.0.0.1:7199/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" + + + + + diff --git a/conf/collectd_rrd.conf b/conf/collectd_rrd.conf new file mode 100644 index 0000000..8412714 --- /dev/null +++ b/conf/collectd_rrd.conf @@ -0,0 +1,28 @@ +Hostname "monitoring" +FQDNLookup true + +LoadPlugin logfile +LoadPlugin network +LoadPlugin rrdtool + + + Listen "192.168.56.102" + + + +# DataDir "/home/alex/test_2014_07_14T16_55_42_709701/rrd" + DataDir "/home/alex/test_2014_07_14T16_55_42_709701/rrd" + + + + Globals true + + + + ModulePath "/home/alex" + Import "locust_plugin" + + +Include "/etc/collectd/filters.conf" +Include "/etc/collectd/thresholds.conf" + diff --git a/conf/collectd_slave.conf b/conf/collectd_slave.conf new file mode 100644 index 0000000..d43d267 --- /dev/null +++ b/conf/collectd_slave.conf @@ -0,0 +1,26 @@ +Hostname "devstack" +FQDNLookup true + +LoadPlugin logfile + +LoadPlugin cpu +LoadPlugin df +LoadPlugin disk +LoadPlugin entropy +LoadPlugin interface +LoadPlugin irq +LoadPlugin java +LoadPlugin load +LoadPlugin memory +LoadPlugin network +LoadPlugin processes +LoadPlugin swap +LoadPlugin users + + + Server "192.168.56.102" + + +Include "/etc/collectd/filters.conf" +Include "/etc/collectd/thresholds.conf" +Include "/etc/collectd/collectd-cassandra.conf"