Is Graphite suitable for aggregating data points of a single metric type

Asked by Priyanka

We have a daemon that is sending metrics to Carbon every 1sec, example - count of items processed. Data points are uploaded every 1sec. Example - 2,7,4,8,9,10,3,6 (each data point sent every second). Is there any way to aggregate on graphite? Say we want to find out how many items are processed so far on hostA for instance so far, 49 in this case.

I explored "sumSeries" and "carbon-aggregator". They seem to be combining data points from different whisper file and then combining the results by applying the specified function over the entire series. Essentially creating a single series out of multiple series for a same metric published from different hosts.

My use case is slightly different as I would like to query how many have been processed in all per host.
The other option is to get all the data points using render url apis and aggregate them within our application layer. Before going down that path, I want to make sure if there is anything in Graphite that could provide me such aggregations.

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
Denis Zhdanov (deniszhdanov) said :
#1
Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#2
Revision history for this message
Priyanka (priyanka-mitra) said :
#3

Exactly what I needed. Really appreciate your help!

I am getting the desired output in terms of count, 896, which is expected. However I am not able to interpret the timestamp component (assuming it is timestamp) 1421423094400, 1423180800. I do not have these timestamps in the whisper file.

[{"target": "summarize(edp.test.testing.priyanka-dev.TotalDiscoveredItems, \"24hour\", \"sum\")", "datapoints": [[896.0, 1423094400], [null, 1423180800]]}]

Any ideas where they are coming from?

Can you help with this problem?

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

To post a message you must log in.