Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

accumulation of value in Graphite

Tags:

graphite

I send one message each time a user connect to my site.

With this format:

"user_login 1 13xxxxxxx"  (key value timestamp)

My problem is Graphite give me a graph with only a line with the value "1", each minute. I send a random number of messages each minutes (between 6 and 60), but I think Graphite limits to the first (or last?) message, to display a value.

How to do to have an sum of each message, each minute ?

like image 741
nicolas Avatar asked Aug 17 '11 16:08

nicolas


People also ask

What is Graphite storage?

Graphite does two simple things: It stores your numeric time-series data into its backend database. It lets you query the data, render them into graphs or use the data directly using supported visualization tools.

What database does Graphite use?

Graphite has its own specialized database library called whisper, which is very similar in design to RRD, but has a subtle yet fundamentally important difference that Graphite requires.

What is Graphite time-series?

Graphite is a free open-source software (FOSS) tool that monitors and graphs numeric time-series data such as the performance of computer systems. Graphite was developed by Orbitz Worldwide, Inc and released as open-source software in 2008. Graphite. Developer(s)


2 Answers

You could also try carbon aggregation service so that metrics are aggregated when they are collected instead of in the Graphite UI. See http://graphite.readthedocs.org/en/latest/config-carbon.html#aggregation-rules-conf for aggregation rule configuration. Note that you need to send the metrics to carbon aggregation service port that is running in different port than the normal carbon collector port.

like image 168
Jari Avatar answered Oct 22 '22 15:10

Jari


You might be interested in running statsd or statsite on your graphite server. That software will aggregate all statistics per a configurable time period, and write the result out to graphite.

Take a look at github.com/etsy/statsd (in node.js) and github.com/kiip/statsite (python clone). Etsy's statsd contains a few code examples on how to use it.

like image 31
Kce Avatar answered Oct 22 '22 15:10

Kce