Skip to content

v0.69.0

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Dec 11:34
· 67 commits to main since this release
76b9706

Added

  • Added schema option to the parser 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 the parser:relaxed regex values or when simply
    parser:relaxed is not set at all.
    Default value is prometheus 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 set schema to thanos 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.