Mikhail T. Mikhail T. - 1 year ago 179
reST (reStructuredText) Question

How to get the latest timestamp available for a given metric from Graphite?

How would I query the most recent timestamp for a particular metric in Graphite?

Using the Render API, I can ask for all known datapoints for the metric during a period, but that's both wasteful and unreliable...

Wasteful because it would give me all datapoints for the specified period (1 week by default), while I only need one.

Unreliable because the period, whatever I pick, may be too short...

Can it be done? Thanks!

Answer Source

Well, apparently, it can not be done at the moment. Maybe, Graphite-developers will add the necessary API some day.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download