graphite-graph-dsl icon indicating copy to clipboard operation
graphite-graph-dsl copied to clipboard

Add support for exclude function

Open falkenbt opened this issue 13 years ago • 3 comments

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.

falkenbt avatar Oct 23 '12 16:10 falkenbt

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

ripienaar avatar Oct 23 '12 21:10 ripienaar

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").

falkenbt avatar Oct 24 '12 16:10 falkenbt

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

davewongillies avatar Sep 30 '13 02:09 davewongillies