MetricCatcher is a bookkeeping agent for application metrics. It utilizes Coda Hale's Metrics package to provide languages that aren't Java with the easy-to-use tracking & advanced maths of Metrics.
MetricCatcher takes in JSON about things you want to track in your application and forwards the data on to Graphite or Ganglia for storage & visualization.
MetricCatcher utilizes Coda Hale's Metrics for its own storage of information, statistical analysis, and sending information along to Graphite or Ganglia. When MetricCatcher first receives a metric, it creates the corresponding Java object. Subsequent messages referring to a metric of the same name update or increment that metric as appropriate. Metrics are sent on to the configured metrics server, Ganglia or Graphite, once very minute.
We wrote MetricCatcher in order to take advantage of the statistics that Coda Hale's Metrics provides in languages that aren't Java. It is very useful for things like web applications that don't have any in-memory persistance (i.e. process-per-request).
Builds of MetricCatcher can be found on Sonatype's OSS repository or the The Central Repository. Grab the latest -dist.zip and unpack it. Uncomment the type of server you'd like MetricCatcher ot send metrics to in conf/config.properties and set the appropriate hostname. Can start MetricCatcher using the included bin/start-metricCatcher.sh script and then check logs/metriccatcher.log to see if it had any issues starting up. At the default DEBUG loglevel, MetricCatcher logs every time it gets a metric update, making debugging a cinch.
MetricCatcher accepts JSON on UDP port 1420 by default.
Each metric has a name, type, timestamp, and value. See Coda Hale's Metrics documentation for details on the available metric types. Histograms are either biased (favor more recent data) or uniform (weight all data equally) and are referred to as such.
{
"name":"namespace.metric.name",
"value":numeric_value,
"type":"[gauge|counter|meter|biased|uniform|timer]",
"timestamp":unix_time.millis
}
MetricCatcher expects a list of individual metrics as described above.
[
{"name":"foo","value":7,"type":"gauge","timestamp":1320682297.6631},
{"name":"bar","value":77,"type":"meter","timestamp":1320682297.6631}
]
- A blog post introducing MetricCatcher
- Phetric: a PHP library for talking to MetricCatcher
- Coda Hale's Metrics: the center of MetricCatcher
MetricCatcher was written by Drew Stephens
<drew@dinomite.net>
when at Clearspring. Clearspring is now AddThis.
MetricCatcher is released under the Apache License Version 2.0. See Apache or the LICENSE file in this distribution for details
Please report bugs or request new features at the GitHub page for MetricCatcher: http://github.com/clearspring/MetricCatcher
When this was written, AddThis was hiring; even if the blame on this line is from long ago, we probably still are. Check out http://addthis.com/careers if you're intersted in doing webapps, working with Big Data, and like smart, fun coworkers. Clearspring is based just outside of Washington, DC (Tysons Corner) and has offices in New York, Los Angeles, and beyond.