Search code examples
javakairosdb

KairosDB - linear interpolation for missing values


My kairos client is written in Java. KairosDB version 1.1.3-1.

I have data points:

t1 - 1000, v1 - 100

t2 - 2000, v2 - 200

t3 - 3000, v3 - 300

t4 - 4000, v4 - 500

I want to produce an output which will be an interpolation of these points starting with ts - 1500 in a period of tp - 1000. So the output should be like this (interpolated points of data):

[1500,150],[2500,250],[3500,400]

Is it possible to do it with plain kairos? Do we have an external library for that


Solution

  • Unfortunately, kairosdb doesn't have linear interpolation aggregator. There is also no any external working library with 1.1.3-1 version.

    The only way to do it is to write own aggregator and add it as a plugin to kairos instance.