graphite-project/graphite-web — pull request #661 by g76r (2014-03-12 17:43:56+00:00)
Title: adding callbackToNode() function which is a kind of groupByNode() usable with non-commutative aggregation functions

If we have e.g. thise series:
* sys.server1.filesystems.root.used
* sys.server1.filesystems.root.total
* sys.server2.filesystems.root.used
* sys.server2.filesystems.root.total
* sys.server2.filesystems.home.used
* sys.server2.filesystems.home.total

Then groupByNode is able of computing the grant total of used or total bytes, but it is not able to get usage percentage for every filesystem.

The new callbackToNode() function can:
> callbackToNode(sys.server*.filesystems.*.{used,total},4,'asPercent',true)

This target is a dynamic equivalent of those targets:
* asPercent(sys.server1.filesystems.root.{used,total})
* asPercent(sys.server2.filesystems.root.{used,total})
* asPercent(sys.server2.filesystems.home.{used,total})