Suppress metrics when count falls below threshold
Hello -
I'm tracking some metrics using the percent function.
asPercent( error-count,
This allows me to determine the error rate.
My issue is that at times my "request-count" metric is very low, meaning a small number of errors causes the overall error rate percentage to spike. I do not want to record a high error rate when the "request-count" metric is below a certain 'threshold'. I'd rather suppress that high error rate. E.g. (if there was an excel like "if" function):
if( request-count < threshold, 0, asPercent( error-count,
I toyed around with averageAbove like so:
asPercent( error-count, averageAbove( request-count, threshold ))
Problem with this is you end up with asPercent( error-count, null ) - which asPercent doesn't like. Using transformNull doesn't seem to help either.
Thanks,
Mike
I'm using graphite v. 0.9.10.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jason Dixon
- Solved:
- Last query:
- Last reply: