Aggregate on string prefix extract value from suffix

In our case we have unknown number of metric types.
In order to avoid nested types due to the known problem Locene flattening the objects, and avoid mapping explosion, I'm considering using (prefixed) flat strings and do you grouping by extracting the value from the string.
so the model would be:

{
   "tasks": [
       "taskA@cpu@14567",
       "taskA@time@24567",
       "taskB@cpu@14567",
       "taskB@time@24567",
       ...
   ]
}

is it possible to obtain a moving average histogram, by using a script to filter by task prefix and extracting value from the suffix?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.