Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to Ignore values by range when displaying in composer?

Tags:

graphite

Is there a function in the Graphite URL API which allows us to ignore values which are inside (or outside) a certain range?

like image 502
Usman Ismail Avatar asked Jan 28 '13 14:01

Usman Ismail


1 Answers

I believe you can check out the removeAboveValue and removeBelowValue functions.

For example, to exclude values below 2 and above 10:

http://host/render&target=removeAboveValue(removeBelowValue(a.b.c, 2), 10)

Ignoring values inside a range is a little more difficult, but it can probably be achieved by summing series where data has previously been filtered out (untested):

http://host/render&target=sum(removeAboveValue(a.b.c, 2), removeBelowValue(a.b.c, 10))
like image 87
icecrime Avatar answered Oct 11 '22 03:10

icecrime