← Back to team overview

graphite-dev team mailing list archive

Re: [Question #166935]: Retrieve data with a different step

 

Question #166935 on Graphite changed:
https://answers.launchpad.net/graphite/+question/166935

    Status: Open => Answered

Nicholas Leskiw proposed the following answer:
I think the summarize function does exactly what you want.

Example:

Request:
http://myserver/render/?width=803&height=308&_salt=1312494243.924&from=-30minutes&target=summarize(Server.apache1.BusyWorkers,
"5min")&target=Server.apache1.BusyWorkers&rawData=true

Output:
summarize(Server.apache1.BusyWorkers,
"5min"),1312492500,1312494600,300|255.0,224.0,289.0,249.0,252.0,247.0,None
Server.apache1.BusyWorkers,1312492500,1312494300,60|57.0,39.0,53.0,53.0,53.0,42.0,34.0,50.0,52.0,46.0,46.0,58.0,63.0,66.0,56.0,56.0,45.0,41.0,55.0,52.0,48.0,49.0,54.0,48.0,53.0,52.0,49.0,53.0,51.0,42.0

Notice only 6 datapoints are returned in the first line for that 30 minute
period.

-Nick

On Thu, Aug 4, 2011 at 10:31 AM, Dani
<question166935@xxxxxxxxxxxxxxxxxxxxx>wrote:

> Question #166935 on Graphite changed:
> https://answers.launchpad.net/graphite/+question/166935
>
>     Status: Answered => Open
>
> Dani is still having a problem:
> Hello,
>
> Thanks for the answer, but I expressed myself incorrectly.
>
> When I said aggregate, I really meant consolidate.
>
> summarize() gives me the sum of those 15 minuts datapoints, but what I
> really need is those 15 datapoints consolidated in just 1 datapoint.
>
> Any idea?
>
> --
> You received this question notification because you are a member of
> graphite-dev, which is an answer contact for Graphite.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev
> Post to     : graphite-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.