Search code examples
kairosdbkairos-api

Is it possible to query the latest datapoint in kairosdb for a specific tag?


I am trying to get the latest datapoint for a specific tag say device_id : 101 without knowing when the last datapoint might have come in. It could be 10 minutes ago or 10 days ago. How can I get the last datapoint without specifying the time range ? Is there a way to do this in KairosDB ?


Solution

  • One option would be to use a wide time interval (say last year) and use the query property limit and the aggregator last.