6

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

Usman Ismail
  • 17,999
  • 14
  • 83
  • 165

1 Answers1

7

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))
Dave L.
  • 43,907
  • 11
  • 63
  • 62
icecrime
  • 74,451
  • 13
  • 99
  • 111