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

Add support for exclude function #27

Open
falkenbt opened this issue Oct 23, 2012 · 3 comments
Open

Add support for exclude function #27

falkenbt opened this issue Oct 23, 2012 · 3 comments

Comments

@falkenbt
Copy link

Not sure if this is currently possible due to the double quotes required by exclude. Is there a way to escape quotes from the :data definition?

From the graphte doc:
exclude(seriesList, pattern)

Takes a metric or a wildcard seriesList, followed by a regular expression in double quotes. Excludes metrics that match the regular expression.
@ripienaar
Copy link
Owner

Well its just ruby strings, so standard ruby quote escaping would probably work

@falkenbt
Copy link
Author

In this case this does not work (at least I couldn't get it to work) because you end up with something like exclude(seriesList, "myregex") but it should look like exclude(seriesList, "\myregex").

@davewongillies
Copy link
Collaborator

You'll need to escape the double quotes and the backslashes, so I'd expect it to look like exclude(seriesList, \"\\myregex\\\")

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

3 participants