how to "group" data ?

Asked by Nicolas Rémond

Hi,

Let's say that in Graphite, I have this kind of informations :

stats.timers.servers.SERVER_1.orders.SHOP_1.count
stats.timers.servers.SERVER_1.orders.SHOP_2.count
stats.timers.servers.SERVER_2.orders.SHOP_1.count
stats.timers.servers.SERVER_2.orders.SHOP_2.count

Then, I would like to monitor the total number of orders.
For doing this, I graphed this target "stats.timers.servers.*.orders.*.count" and set "areaMode=stacked"

Each column of the resulting histogramm represents : "sum(orders by server by shop)"

How, can I change this so that it's actually grouped by server ? I want to have "sum(orders by shop)"

I tried with "group(stats.timers.servers.\*.orders.*.count)", but the result looks weird :-S
I can't find any documentation about the "group()" function ...

cheers
Nicolas

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Nicolas Rémond
Solved:
Last query:
Last reply:
Revision history for this message
Brian Hatfield (bmhatfield) said :
#1

Nicolas,

It looks like you might be looking for the "sumSeries" function. Graphite has a ton of built in functions to present your data in different ways.

Take a look here: http://graphite.readthedocs.org/en/latest/functions.html#module-graphite.render.functions

Good luck!
Brian

Revision history for this message
Nicolas Rémond (l-noctilux) said :
#2

I couldn't find the doc ... thanks a lot.

Nicolas