square / cubism

Cubism.js: A JavaScript library for time series visualization.
https://square.github.com/cubism/
Other
4.94k stars 526 forks source link

Graphite find method that supports groupByNode/sumSeries #55

Open syepes opened 11 years ago

syepes commented 11 years ago

Hello,

Has any one managed to use the groupByNode with the current find method? Does anyone know if something like this would be possible?

// This is just an example
findString = 'groupByNode(carbon.agents.*.{creates,metricsReceived},2,"sumSeries")'

graphite.find(findString, function(error, results) { 
    var metrics = results.sort().map(function(i) {
      return graphite.metric(i);
    });
});