v0.69.0
Added
-
Added
schema
option to theparser
configuration 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:relaxed
regex values or when simply
parser:relaxed
is not set at all.
Default value isprometheus
and 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 setschema
tothanos
in 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
pint
config 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-color
flag is set.