Added
-
The promql/impossible check will now warn about aggregations and
and binary operations that try to operate on labels that are already removed in the query.
Example:- record: foo expr: sum(foo) / on(cluster) sum(bar)
The above tries to join two series on the
clusterlabel, butsum(...)already removed labels
from the results on both side, so there will be no such label on join on. -
The promql/impossible check will now warn about label joins
usinggroup_left(...)andgroup_right(...)that are not possible or not used in any way.
Fixed
- For queries using binary expressions between two vectors Prometheus will remove the metric name
from resulting series, pint will now also apply the same logic when checking queries.