square/cubism — pull request #21 by phobos182 (2012-07-12 19:01:11+00:00)
Title: Graphite summarize function fix

The context.step is defined in milliseconds. But there is no step to convert between milliseconds and seconds before sending data to graphite. Currently metrics that have to be summarized in seconds are broken as the request is sent to graphite in milliseconds.

Configuration:
var context = cubism.context()
.step(15 * 1000) // 15 seconds per value
.size(1440); // fetch 1440 values

Result:
http://carbon1/render?format=raw&target=alias(summarize(my_stat, '15000sec', 'sum'),'')&from=1342097670&until=1342119299