graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #03682
[Question #218717]: Pattern for the render target which matches everything to an arbitrary depth
New question #218717 on Graphite:
https://answers.launchpad.net/graphite/+question/218717
Due to the naming convention that we have adopted, we have a need for a pattern that can match an arbitrary number of levels of a metric path. The current wildcards supported in the target pattern require the number of levels to be explicitly specified (e.g. a.b.*.*.*.*.*.c) What we require is something equivalent to the a.b.*.(zero or more times).c.
I have had a look at the source (of the 0.9.x branch) and it doesn't look like this is possible in the current implementation. Is there some hidden/cunning way to achieve this?
I have worked on a patch to implement a special pattern "<...>" which achieves the desired outcome. This can be found at https://github.com/richg/graphite-web/tree/0.9.x-expand_pattern. Perhaps this could be scrutinized and discussed and thereafter submitted as a pull request (if found to be useful).
Thanks
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.