Added
- Added
names
option to theparser
block, which controls how does Prometheus validates
label names. - Added promql/impossible check. This check duplicates some
of the functionality of the promql/vector_matching so
in the future the scope of promql/vector_matching checks
will be reduced to avoid duplicated reports for the same issue. - Added
ignoreMatchingElsewhere
option to promql/series check.
Changed
- Removed aggregation checks from the promql/fragile check - #1289.
- promql/regexp check severity was reduced from
bug
to awarning
. - This release contains some major changes to the way problems are reported by pint.
Each problem might now point to the specific part of the PromQL query that caused the issue
rather than just the line range on which the query is defined. Most, but not all, checks
were updated to emit more detailed problem descriptions.
Fixed
- Improved the logic of promql/series check to skip checks on some selectors
which absence might be expected. For example usingfoo unless bar
will now only havefoo
tested whilebar
is ignored by this check. This is because the query implies thatbar
might be present or missing and depending on thatfoo
is evaluated. - Don't report regexp matchers with only digits in them (
{code=~"5.*"}
) as smelly in promql/regexp check.