← Back to team overview

graphite-dev team mailing list archive

Re: [Question #157098]: Last data point insertion time ?

 

Question #157098 on Graphite changed:
https://answers.launchpad.net/graphite/+question/157098

    Status: Open => Answered

chrismd proposed the following answer:
Sorry for the delayed response. The best way to determine this is to
fetch some recent interval for a metric and look at the timestamp of the
last non-None value. If you add '&format=csv' to a graph's url you'll
get back the raw data in csv form. On the shell you could use the
following one-liner to get the last timestamp for the foo.bar.baz
metric:

curl -s
'http://graphite/render?target=foo.bar.baz&format=csv&from=-5min' | grep
-v None | tail -n1 | cut -d, -f2

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