KairosDB version 1.1.3-1.
I have dataPoints with [time, name, key, value]
.
Is it possible to at first group them by name
and key
, then aggregate results, then group them again by key
and then aggregate again?
So basically:
name1
+key1
and all values for name2
+key1
key1
(I want to combine results here)No you cannot do that. You only can group once, and cannot merge the groups afterwards.
We did our own extension to kairosdb supporting a similar feature (merging all groups of a metric with a sum/avg...), but it's so intrusive (we override kairosdb query handler by our own) that we did not contribute to open source.
Edit: You may try to use kairosDB post-processing script that is designed for that: https://github.com/kairosdb/kairos-script