← Back to team overview

graphite-dev team mailing list archive

[Question #268613]: Graphing movingAverage for only existing (not None\Null) datapoints

 

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


Greetings from OWW!

Let's say I have the following metric:

PRO2.streambase.travelport-hotel.all.jiniIn.HotelInventoryService.reclaimInventory.pctFailed

http://i.imgur.com/Ssn3FVM.png

I would like to calculate the moving average for last 5 existing data points.  Unfortunately, the movingAverage(series,5) function is taking into account the Null, or None values, and not producing movingAverage for the visible data:

http://i.imgur.com/bC8Ibhw.png

I want to see the moving average for ONLY the X last existing data points (therefore visible datapoints, not Null, or None. On the graph above, those would be the visible 100's and 0's).

Can this be achieved in Graphite? If so, what function could be used?


-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.