I'm having a hard time achieving some simple stuff I normally do with Timelion.
The use case is quite simple (i.e: % of distinct clients with specific condition):
cardinality(field) metric (with applied filter)
cardinality(field) metric (no filter)
multiply x 100
In timelion I would do something like this:
.es(index='myindex', q="DownStream_RXPOWER:>4.9 || DownStream_RXPOWER:<-4.9", metric='cardinality:MAC_CM').divide(.es(index='myindex', metric='cardinality:MAC_CM')).multiply(100).label("%Of Unique Clients with problem")
In visual time builder, the "Group by filter" seems to affect all metrics created in the label with doesn't let me create a variable for the calculation that is not affected by the filter.
Does anyone knows how work around this? Or am I seeing things wrong?