cubism icon indicating copy to clipboard operation
cubism copied to clipboard

Graphite find method that supports groupByNode/sumSeries

Open syepes opened this issue 12 years ago • 0 comments

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);
    });
});

syepes avatar Jun 25 '13 22:06 syepes