Hi! I am using timelion with this code
.es(index = measurements, metric = max:value, split = id:4, q = "bar").label(regex = '.*FOO-(.*)', label = '$1 Consumption').
The thing is, I have a column with structure "FOO-BAR (some number)". So, I am using regex in order to match entities in that column and put them as first argument in label. I am expecting something like this in my labels
BAR1 Consumption, BAR2 Consumption and etc. But instead, I get following:
BAR1 > max(value) Consumption, BAR2 > max(value) Consumption
Is it the way it supposed to work? If I label graphs already why I have also my aggregation there?