Skip to content

Instantly share code, notes, and snippets.

@pcn
Created July 23, 2013 16:25
Show Gist options
  • Select an option

  • Save pcn/6063828 to your computer and use it in GitHub Desktop.

Select an option

Save pcn/6063828 to your computer and use it in GitHub Desktop.
Using jmxtrans
"servers" : [ {
"port" : "7199",
"host" : "10.77.63.40",
"alias" : "jmxtrans",
"queries" :
[ {
"obj" : "org.apache.cassandra.db:type=Caches,*",
"resultAlias": "Caches",
"attr" : [ "Hits", "Requests" ],
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.GraphiteWriter",
"settings" : {
"rootPrefix": "host.metric.prefix",
"port" : "2003",
"host" : "graphite-collector.host",
"typeNames" : [ "keyspace", "cache", "name" ]
}
}]
},
{
"obj" : "org.apache.cassandra.db:type=ColumnFamilies,*",
"resultAlias" : "ColumnFamilies",
"attr" : [ "RecentReadLatencyMicros", "RecentWriteLatencyMicros", "TotalDiskSpaceUsed",
"ReadCount", "WriteCount", "LiveDiskSpaceUsed", "MaxRowSize",
"MeanRowSize", "CompressionRatio", "MemTableDataSize",
"LiveSSTableCount", "MemTableDataSize", "PendingTasks",
"TotalReadLatencyMicros", "TotalWriteLatencyMicros"
],
"outputWriters" : [ {
"@class" : "com.googlecode.jmxtrans.model.output.GraphiteWriter",
"settings" : {
"rootPrefix": "host.metric.prefix",
"port" : "2003",
"host" : "graphite-collector.host",
"typeNames" : [ "keyspace", "columnfamily", "name" ]
}
} ]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment