Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Support use of Graphite functions #10

Open
bodgit opened this issue Jul 24, 2013 · 1 comment
Open

Support use of Graphite functions #10

bodgit opened this issue Jul 24, 2013 · 1 comment

Comments

@bodgit
Copy link

bodgit commented Jul 24, 2013

Currently Dusk works fine provided your metrics don't need to be transformed in any way. If you try and use any functions, then they get passed to the Graphite metric find facility and returns no matches.

As an example, I'd like to compare all non-idle CPU, something like:

sumSeriesWithWildcards(averageSeriesWithWildcards(exclude(hosts.*.cpu.*.*, "\.idle$"),3),3)

...where each metric is of the format hosts.hostname.cpu.0.system, etc.

Perhaps requires separating out the metric path, although passing that in the above example would result in far more rows than there are actual hosts.

@obfuscurity
Copy link
Owner

We should just need to update

myGraphite.find(this.target, function(error, results) {
to be smarter about using graphite.find() with the real target name and not this.target (which contains the full metric + functions string).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants