Graphite: Pass same filtered SeriesList from two different days to asPercent()

Asked by sourabh sinha

I have a graphite metric for event counts for different placements as following:

stats.counters.events.placements.count

I am interested to find the percentage comparison between today's and yesterdays's same time 2 hour moving averages for each placement. I have the following function which is working fine:

    asPercent(
        groupByNode(
            movingAverage(stats.counters.events.*.count, '2hour'),
        3, "averageSeries"),
        groupByNode(
            movingAverage(
                timeShift(stats.counters.events.*.count, '1d'),
            '2hour'),
        3, "averageSeries")
    )

Now I want to enhance it, by adding some filter. E.g. some of my placement counts are very low, I want to filter those placements out for which yesterday's movingAverage count is less than 100.

so basically find the filtered seriesList of placements from yesterday (denominator) and compare the SAME placement list counts from today (numerator)

I got yesterday's list:

    averageAbove(timeShift(stats.counters.events.*.count, '1d'), 100)

but not sure how to enforce the same placement list for today's count (on the numerator), since applying averageAbove() on today's count i.e.

    averageAbove(stats.counters.events.*.count, 100)

may give a different list, and pass two different seriesLists to the asPercent().

Is there any way to achieve this by using mapSeries()/reduceSeries() combination or by some other way.

Thanks in advance.

Question information

Language:
English Edit question
Status:
Expired
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#1

Hello,

Looks like your questions not getting much visibility here, you can try to open issue in github project - https://github.com/graphite-project/graphite-web

Revision history for this message
sourabh sinha (sourabh.ubuntu1) said :
#2

Hi,
  Thanks for your comment, I did put my question on github.

Thanks.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.