Convert discrete events to a rate

Asked by Rob Walker

Most of the metrics I am logging to graphite are already rates, or represent absolute values and work great.

However, for some events I want to be able to simply log and event and have them accumulate in the appropriate time based bucket - ie. new metrics arriving within the same time interval add to the total value for that bucket.

Can graphite do this out of the box?

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Michael Leinartas (mleinartas) said :
#1

Graphite doesn't do that sort of aggregation out of box very well. It is technically possible to do it using carbon-aggregator (at least the version in trunk), but it's not well suited to the task.

Most people are using statsd or a clone of it to do this. Statsd received UDP packets with metrics sent in a simple text protocol (similar to graphite's) that identifies the values as either counts (to be summed) or timings (to be averaged) and flushes the aggregated metrics to graphite periodically.

This is a good list of implementations to choose from:

http://joemiller.me/2011/09/21/list-of-statsd-server-implementations

Can you help with this problem?

Provide an answer of your own, or ask Rob Walker for more information if necessary.

To post a message you must log in.