← Back to team overview

graphite-dev team mailing list archive

[Question #108329]: search entire metric set

 

New question #108329 on Graphite:
https://answers.launchpad.net/graphite/+question/108329

chris, instead of needing to maintain a separate index, would it be too hard to add another method in the metrics section that instead of looking at a specific depth, would simply search all depths for a key term?

I'm attempting to do this right now actually, with the intent to return json objects at each level below what's matched.

In other words, if you have metrics like this:

foo.bar.1.count
foo.bar.1.countFailed
foo.bar.1.pctFailed
foo.bar.2.count
foo.bar.2.countFailed
foo.bar.2.pctFailed
foo.nop.count
foo.nop.countFailed
foo.nop.pctFailed
bar.super.count
bar.super.countFailed

and you search 'bar', i want this returned:

foo.bar.1
foo.bar.2
bar.super

I thought I was pretty close developing this myself but I'm getting hung up on how to use the matches object..

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.