Time Series Downsampling/Upsampling

48 views
Skip to first unread message

Abdel K

unread,
Dec 17, 2021, 7:03:21 AM12/17/21
to KairosDB

I am trying to downsample and upsample time series data in KairosDB. Time series database systems (TSDS) usually have an option to make the downsampling and upsampling with an operator like SAMPLE BY (1h).

Is there a possibility to downsample time series on KairosDB?

Thanks in advance!

Rosita Hormann Lobos

unread,
Dec 17, 2021, 7:45:48 AM12/17/21
to KairosDB
Hello Abdel,

If you look at the query documentation of KairosDB here: https://kairosdb.github.io/docs/restapi/QueryMetrics.html (endpoint api/v1/datapoints/query), you will see that there's an option to add an aggregator to the query. The aggregator should allow you to define the method of aggregation (average, summation, among others) and the sampling time period on which the aggregator is applied, which should allow you to downsample or upsample your data. More information about available aggregators here: https://kairosdb.github.io/docs/restapi/Aggregators.html 

Hope that helps :)

alexm...@gmail.com

unread,
Dec 17, 2021, 9:09:30 AM12/17/21
to KairosDB
Worth having a look at the Roll-ups functionality as well.

https://kairosdb.github.io/docs/Roll-ups.html
Reply all
Reply to author
Forward
0 new messages