graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #01831
Re: [Question #178745]: Target Regex Syntax
Question #178745 on Graphite changed:
https://answers.launchpad.net/graphite/+question/178745
Status: Expired => Answered
chrismd changed the question status:
Sorry for the expiration, I've been on hiatus for a couple weeks.
Graphite doesn't use regexes actually it uses filesystem globs because
that's used to locate the database files. Once it's found the metrics
though you can apply the exclude() function to trim down the dataset,
and it happens to take regex patterns as input. So if your pattern foo.*
matches stuff you don't care about (say, metrics about a bar) then you
could get what you want by saying target=exclude(foo.*,"bar"). Where bar
can be any regex supported by the python's standard library 're' module.
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.