如何从 Graphite 获取给定指标可用的最新时间戳?
How to get the latest timestamp available for a given metric from Graphite?
我如何在 Graphite 中查询特定指标的最新时间戳?
使用 Render API,我可以请求 all 一段时间内指标的已知数据点,但这既浪费又不可靠...
浪费,因为它会给我指定时间段内的 所有 个数据点(默认为 1 周),而我只需要一个。
不可靠,因为无论我选择什么,周期都可能太短...
可以吗?谢谢!
嗯,显然,它 can not be done at the moment。也许,Graphite 开发人员有一天会添加必要的 API。
我如何在 Graphite 中查询特定指标的最新时间戳?
使用 Render API,我可以请求 all 一段时间内指标的已知数据点,但这既浪费又不可靠...
浪费,因为它会给我指定时间段内的 所有 个数据点(默认为 1 周),而我只需要一个。
不可靠,因为无论我选择什么,周期都可能太短...
可以吗?谢谢!
嗯,显然,它 can not be done at the moment。也许,Graphite 开发人员有一天会添加必要的 API。