v0.69.0
Added
-
Added
schemaoption to theparserconfiguration block for setting rule validation
schema. This option is only used when files are parsed in strict mode - which is when
rule file path does NOT match any of theparser:relaxedregex values or when simply
parser:relaxedis not set at all.
Default value isprometheusand tells pint to expect rule files with the schema
expected by Prometheus itself. If you use pint to validate rules loaded into Thanos Rule
component then setschematothanosin your pint config file:parser { schema = "thanos" }
File schema when using
schema: prometheus(default):groups: - name: example rules: - record: ... expr: ... - alert: ... expr: ...
When using
schema: thanos:groups: - name: example partial_response_strategy: abort rules: - record: ... expr: ... - alert: ... expr: ...
-
Rules configured in
pintconfig can now be locked - when a rule is locked it cannot
be disabled by users by adding a# pint disable ...or# pint snooze ...comments.
Fixed
- The console reporter won't color the output if
--no-colorflag is set.