github cloudflare/pint v0.77.0

16 hours ago

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 cluster label, but sum(...) 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
    using group_left(...) and group_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.

Don't miss a new pint release

NewReleases is sending notifications on new releases.