← Back to team overview

graphite-dev team mailing list archive

[Question #234272]: fill the none values in json query with last stable value

 

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

Hi All,

I am new to the graphite world.

Can someone please help me with below scenario:

I have continuous data say from 9AM to 12 PM and there's no data till 8PM and thereafter data till 10PM.

curl -S "http://192.168.2.154:8088/render/?from=-6hours&target=keepLastValue(integral(stats.sample.stats_rec))&format=json" 

By using the keepLast value also I am getting null in the json output. 
But if i change the query as from=-24hours, the "null" values are filled with the last value at 12 PM.

Is there any way to get/retain the last value at 12 PM eventhough if I query between 2PM-10PM???

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