cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Burroughs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-4430) optional pluggable o.a.c.metrics reporters
Date Thu, 07 Mar 2013 01:09:11 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-4430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13595381#comment-13595381
] 

Chris Burroughs commented on CASSANDRA-4430:
--------------------------------------------

https://github.com/cburroughs/cassandra/tree/metrics-config  with the meat at https://github.com/cburroughs/cassandra/commit/c966fa8da4667768dea1aab1ef26bac811412bdd

A few notes at this stage:
 * It works!
 * Requires newer snakeyaml ( CASSANDRA-5317 ), I'm not sure if that's something that can
be worked around
 * Not sure if the jboss logging transitive dep can be avoided yet.  All of the transitives
dependencies could be avoided (I think) if we don't care about validating configs (ie getting
helpful messages along the lines of  "fortnight" is not a valid timeunit, must match "^(DAYS|HOURS|MICROSECONDS|MILLISECONDS|MINUTES|NANOSECONDS|SECONDS)$")
 * In theory the config could be embedded in cassandra.yaml.  I went with a new file since
jmx/log4j/mx4j etc are all done outside of cassandra.yaml.  This is the design choice I was
least sure about.

To use:
 * Configure conf/metrics-reporter-config.yaml as described in https://github.com/addthis/metrics-reporter-config
 * copy the jar for whatever metrics sink you are using into lib/ (csv reporter is built in,
the more interesting ganglia/graphite sinks are independent jars http://mvnrepository.com/artifact/com.yammer.metrics/metrics-ganglia)
                
> optional pluggable o.a.c.metrics reporters
> ------------------------------------------
>
>                 Key: CASSANDRA-4430
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4430
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Chris Burroughs
>            Priority: Minor
>         Attachments: cassandra-ganglia-example.png
>
>
> CASSANDRA-4009  expanded the use of the metrics library which has a set of reporter modules
http://metrics.codahale.com/manual/core/#reporters  You can report to flat files, ganglia,
spit everything over http, etc.  The next step is a mechanism for using those reporters with
 o.a.c.metrics.  To avoid bundling everything I suggest following the mx4j approach of "enable
only if on classpath coupled with a reporter configuration file.
> Strawman file:
> {noformat}
> console:
>   time: 1
>   timeunit: "seconds"
> csv:
>  - time: 1
>    timeunit: minutes
>    file: foo.csv
>  - time: 10
>    timeunit: seconds
>     file: bar.csv
> ganglia:
>  - time: 30
>    timunit: seconds
>    host: server-1
>    port: 8649
>  - time: 30
>    timunit: seconds
>    host: server-2
>    port: 8649
> {noformat}
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message