graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #04453
Re: [Question #238871]: Count how many metrics matches a condition
Question #238871 on Graphite changed:
https://answers.launchpad.net/graphite/+question/238871
Lucas Ribeiro posted a new comment:
I think i found a way:
sumSeries(offset(removeAboveValue(transformNull(movingAverage(summarize(counters.news.*.crawler_count,"1d"),7),0),0),1))
I:
Take all the metris
Summarize by day
Take the moving average for 7 periods (7 days == 1 week)
Transform null values into 0
Remove all values above 0
Offset all values by 1
Sum them
Is it correct? It will output the number of metric that didnt sent
counters in the last 7 days?
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.