← 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:
You can use the summarize() function.  The description for this function
isn't on readthedocs.org, I'll try and add it today. Basically,
&target=summarize(my.metric.name,"15min")  will give you 15 minute
totals (sum, not average).  Read the URL API on
http://graphite.readthedocs.org for how to specify times.

Dani <question166935@xxxxxxxxxxxxxxxxxxxxx> wrote:

>New question #166935 on Graphite:
>https://answers.launchpad.net/graphite/+question/166935
>
>Hello,
>
>Is there any way to retrieve data with a different step than the one configured at storage-schemas. conf?
>
>For example, I have a few metrics with a retention period of one month with a 60 seconds step. I'm not using graphite to render my graphs, just to get the rawData. If i call graphite and retrieve a whole day of data, i'll get 1440 datapoints. 
>
>I'll be easier if I can change the step and tell it to aggregate the data and maybe change the step to 15 minutes or something like that.
>
>But I do not want to change the wps resolution, I'd like to choose wich step to use.
>
>If I call /render/?target=my.metric&from=00%3A00_20110803&until=23%3A59_20110803&rawData=true
>
>I get 
>my.metric,1312322460,1312408800,60|lots of datapoints
>
>If i only had an option like &step=300 or a function to do that.
>
>
>-- 
>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.