This completely reimplements the vector-to-vector binop visualizer in a (hopefully) prettier, cleaner, and more powerful way. Main highlights:
Everything is (hopefully) prettier now, with match groups being displayed in colored boxes (instead of one big table), and series within match groups having a color-coded swatch that is tracked into the result.
The logic for calculating the match groups is now separated out (and completely reimplemented) in the promql "package" and could be reused by other things now.
Match groups are now also shown for error cases, and the error cases are called out and explained more clearly (per match group).
There are now safety limits both for the number of displayed groups and the number of series per group (both currently at 100 max). Both can be turned off with a button when needed.
The sample values for the series can be switched on/off and are off by default, since they are not usually needed to figure out matching behavior.
One-to-one matching example:
One-to-one matching with some missing matches:
Many-to-one matching:
No group_left() modifier for many-to-one matching error:
Using group_right() when group_left() would be needed:
This completely reimplements the vector-to-vector binop visualizer in a (hopefully) prettier, cleaner, and more powerful way. Main highlights:
promql
"package" and could be reused by other things now.One-to-one matching example:
One-to-one matching with some missing matches:
Many-to-one matching:
No
group_left()
modifier for many-to-one matching error:Using
group_right()
whengroup_left()
would be needed: