Releases: cloudflare/pint
v0.67.1
Fixed
- Improved message formatting in the alerts/template check.
v0.67.0
Added
-
Added
--checkstyleflag topint lint&pint cifor writing XML report file
incheckstyleformat - #1129. -
Added
--jsonflag to bothpint lintandpint cicommands, this enables writing a JSON file
with the report of all problems #606. -
promql/fragile will now warn when alerting rules are using
one of the aggregation operation that can return different series on every evaluation,
which can cause alert floppiness - #820. -
promql/regexp check now supports extra configuration options
to disable reports on smelly selector - #1096. -
Checks can be enabled or disabled specifically for some Prometheus rules via
rule {}config blocks.
Addingenableordisableoption with a list of checks names allows to selectively enable or disable
checks only for Prometheus rules that match givenrule {}definition.
Enabling checks only for matching rules will only work if these checks are disabled globally via
check { disabled = [] }config block.
For example to disablepromql/ratecheck for all rules except alerting rules in therules/criticalfolder:checks { // This will disable promql/rate by default. disabled = [ "promql/rate" ] } rule { match { path = "rules/critical/.*" kind = "alerting" } // This will enable promql/rate only for Prometheus rules matching all our match conditions above. enable = [ "promql/rate" ] }
Changed
- alerts/template check was refactored and will now produce more accurate results.
Messages produced by this check might include details of the PromQL query fragment causing the problem
if the query is complex enough.
Fixed
- Don't try to create GitLab comments on unmodified lines - #1147.
v0.66.1
Fixed
- Fixed message formatting in the promql/series check.
v0.66.0
Added
- Added
fallbackTimeoutoption to the promql/series check
that controls how much time pint can spend checking other Prometheus servers for missing
metrics.
Fixed
- Reverted
Fixed colored output on some environments - #1106change
as it was breaking GitHub report comments. - Fixed panics in rule/duplicate check.
v0.65.3
Fixed
- Fixed GitHub actions permissions.
v0.65.1
Fixed
- Fixed a bug in
matchblockstatehandling that caused all rules to always match any state.
v0.65.0
Added
- promql/regexp check will now look for smelly regexp selectors.
See check docs for details. - promql/range_query now allows to configure a custom maximum
duration for range queries - #1064. - Added
--enabledflag to the pint command. Passing this flag will only run selected check(s). - Added
stateoption to the rulematchblock. See configuration docs for details.
Fixed
- Don't try to report problem on unmodified files when using GitHub reporter.
- If there is a pint config file present then pint will now always add it to the
parserblockexcludelist.
This is to avoid trying to parse it as a rule file if it's included in the same folder as rules.
v0.64.0
Added
- Added
ignoreLabelsValueto promql/series check settings. - Added
include&excludeoptions were moved from thecito theparserconfiguration block.
They now apply to all pint commands, not justpint ci- #631.
v0.63.0
Added
- Added alerts/absent check.
- Added rule/name check - #1020.
Changed
- promql/vector_matching will now report more details, including which Prometheus server reports problems and which part of the query is the issue.
- GitHub report code was refactored, it should behave as before.
- When running
pint cipint will now run all checks on unmodified rules when afile/disablecomment was removed.
Fixed
- Fixed false positive warnings from alerts/comparison when using
absent_over_time(). - GitHub reporter will now wait before making more requests if it's rate limited - #699.
v0.62.2
Fixed
- When using BitBucket reporter
pint cimight create a comment longer than the limit allowed by BitBucket.
To avoid this pint will now truncate long comments.