Graphite how to summarize based on selected interval

Joyce Babu picture Joyce Babu · Oct 25, 2014 · Viewed 8.9k times · Source

How can I summarize graphite data depending on the selected interval? If the selected interval is up to 1 hour, the data counter should show data points for every minute. If the interval is up to 3 hours, the data should be summarized over 5 minutes. If the interval is up to 1 day, the data should be summarized over 15 minutes.

Is this possible?

Answer

blak3r picture blak3r · Dec 1, 2016

You can get something close this this using by creating an interval template variable, enable the Auto option, and set number of steps. In the example below it's set to 40 steps so it will pick an appropriate interval based on the time range.

enter image description here

Use the variable like this: enter image description here