Can I pick a resolution/precision for the data I query?

Asked by Dan

Hi,

I was wondering, when using the URL API, particularly for grabbing raw data, is there a way to specify the resolution/precision of the data I'm pulling? If not, does it at least default to the highest possible consistent precision for that time range?

Thanks

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
chrismd (chrismd) said :
#1

It does default to the finest precision available. You can use the summarize() function to aggregate (by summing) into a coarser precision like so:

summarize(foo.bar.baz,"1h")

This is also accessible in the functions menu of the graph data window under the Transform submenu. The interval parameter can be a string like '1h' for hourly datapoints, '7d' for weekly, etc.

Can you help with this problem?

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

To post a message you must log in.