Skip to content

Commit

Permalink
Added collectd config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Chudnovets committed Jul 15, 2014
1 parent d2f12cb commit 5023a8f
Show file tree
Hide file tree
Showing 3 changed files with 271 additions and 0 deletions.
217 changes: 217 additions & 0 deletions conf/collectd-cassandra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
<Plugin "java">
JVMARG "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar:/usr/share/collectd/java/generic-jmx.jar"
LoadPlugin "org.collectd.java.GenericJMX"

<Plugin "GenericJMX">

# Standard Java mbeans

# Memory usage by memory pool.
<MBean "memory_pool">
ObjectName "java.lang:type=MemoryPool,*"
InstancePrefix "memory_pool-"
InstanceFrom "name"
<Value>
Type "memory"
#InstancePrefix ""
#InstanceFrom ""
Table true
Attribute "Usage"
</Value>
</MBean>

# Heap memory usage
<MBean "memory_heap">
ObjectName "java.lang:type=Memory"
#InstanceFrom ""
InstancePrefix "memory-heap"

# Creates four values: committed, init, max, used
<Value>
Type "memory"
#InstancePrefix ""
#InstanceFrom ""
Table true
Attribute "HeapMemoryUsage"
</Value>
</MBean>

# Non-heap memory usage
<MBean "memory_nonheap">
ObjectName "java.lang:type=Memory"
#InstanceFrom ""
InstancePrefix "memory-nonheap"

# Creates four values: committed, init, max, used
<Value>
Type "memory"
#InstancePrefix ""
#InstanceFrom ""
Table true
Attribute "NonHeapMemoryUsage"
</Value>
</MBean>

<MBean "garbage_collector">
ObjectName "java.lang:type=GarbageCollector,*"
InstancePrefix "gc-"
InstanceFrom "name"

<Value>
Type "invocations"
#InstancePrefix ""
#InstanceFrom ""
Table false
Attribute "CollectionCount"
</Value>

<Value>
Type "total_time_in_ms"
InstancePrefix "collection_time"
#InstanceFrom ""
Table false
Attribute "CollectionTime"
</Value>
</MBean>

# Cassandra specific mbeans

# <MBean "cache">
# ObjectName "org.apache.cassandra.db:type=Caches,keyspace=*,cache=*"
# InstancePrefix "cache-"
# InstanceFrom "cache"
# <Value>
# Type "gauge"
# InstancePrefix "RecentHitRate"
# Attribute "RecentHitRate"
# </Value>
# </MBean>
#
# <MBean "column_family">
# ObjectName "org.apache.cassandra.db:type=ColumnFamilies,keyspace=*,columnfamily=*"
# InstancePrefix "column_family-"
# InstanceFrom "columnfamily"
# <Value>
# Type "gauge"
# InstancePrefix "LiveDiskSpaceUsed"
# Attribute "LiveDiskSpaceUsed"
# </Value>
# <Value>
# Type "gauge"
# InstancePrefix "LiveSSTableCount"
# Attribute "LiveSSTableCount"
# </Value>
# <Value>
# Type "derive"
# InstancePrefix "TotalReadLatencyMicros"
# Attribute "TotalReadLatencyMicros"
# </Value>
# <Value>
# Type "derive"
# InstancePrefix "TotalWriteLatencyMicros"
# Attribute "TotalWriteLatencyMicros"
# </Value>
# <Value>
# Type "derive"
# InstancePrefix "ReadCount"
# Attribute "ReadCount"
# </Value>
# <Value>
# Type "derive"
# InstancePrefix "WriteCount"
# Attribute "WriteCount"
# </Value>
# </MBean>
#
## <MBean "compaction_manager">
## ObjectName "org.apache.cassandra.db:type=CompactionManager"
## InstancePrefix "compaction_manager"
## <Value>
## Type "derive"
## InstancePrefix "BytesCompacted"
## Attribute "BytesCompacted"
## </Value>
## <Value>
## Type "gauge"
## InstancePrefix "PendingTasks"
## Attribute "PendingTasks"
## </Value>
## </MBean>
#
<MBean "flush_writer">
ObjectName "org.apache.cassandra.internal:type=FlushWriter"
InstancePrefix "flush_writer"
<Value>
Type "gauge"
InstancePrefix "PendingTasks"
Attribute "PendingTasks"
</Value>
</MBean>

<MBean "hinted_handoff">
ObjectName "org.apache.cassandra.internal:type=HintedHandoff"
InstancePrefix "hinted_handoff"
<Value>
Type "gauge"
InstancePrefix "PendingTasks"
Attribute "PendingTasks"
</Value>
</MBean>

<MBean "request_stage">
ObjectName "org.apache.cassandra.request:type=*"
InstancePrefix "request_stage-"
InstanceFrom "type"
<Value>
Type "gauge"
InstancePrefix "PendingTasks"
Attribute "PendingTasks"
</Value>
</MBean>

# <MBean "storage_proxy">
# ObjectName "org.apache.cassandra.db:type=StorageProxy"
# InstancePrefix "storage_proxy"
# <Value>
# Type "derive"
# InstancePrefix "TotalReadLatencyMicros"
# Attribute "TotalReadLatencyMicros"
# </Value>
# <Value>
# Type "derive"
# InstancePrefix "TotalWriteLatencyMicros"
# Attribute "TotalWriteLatencyMicros"
# </Value>
# <Value>
# Type "derive"
# InstancePrefix "ReadOperations"
# Attribute "ReadOperations"
# </Value>
# <Value>
# Type "derive"
# InstancePrefix "WriteOperations"
# Attribute "WriteOperations"
# </Value>
# </MBean>

<Connection>
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"
</Connection>

</Plugin>

</Plugin>
28 changes: 28 additions & 0 deletions conf/collectd_rrd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Hostname "monitoring"
FQDNLookup true

LoadPlugin logfile
LoadPlugin network
LoadPlugin rrdtool

<Plugin network>
Listen "192.168.56.102"
</Plugin>

<Plugin rrdtool>
# DataDir "/home/alex/test_2014_07_14T16_55_42_709701/rrd"
DataDir "/home/alex/test_2014_07_14T16_55_42_709701/rrd"
</Plugin>

<LoadPlugin "python">
Globals true
</LoadPlugin>

<Plugin python>
ModulePath "/home/alex"
Import "locust_plugin"
</Plugin>

Include "/etc/collectd/filters.conf"
Include "/etc/collectd/thresholds.conf"

26 changes: 26 additions & 0 deletions conf/collectd_slave.conf
Original file line number Diff line number Diff line change
@@ -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

<Plugin network>
Server "192.168.56.102"
</Plugin>

Include "/etc/collectd/filters.conf"
Include "/etc/collectd/thresholds.conf"
Include "/etc/collectd/collectd-cassandra.conf"

0 comments on commit 5023a8f

Please sign in to comment.