← Back to team overview

graphite-dev team mailing list archive

[Question #271536]: Suppress metrics when count falls below threshold

 

New question #271536 on Graphite:
https://answers.launchpad.net/graphite/+question/271536

Hello - 

I'm tracking some metrics using the percent function.

asPercent( error-count,request-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,request-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. 











-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.