forked from cloudflare/pint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tags support in file/disable comments
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
pint.ok -l debug --no-color lint rules | ||
! stdout . | ||
cmp stderr stderr.txt | ||
|
||
-- stderr.txt -- | ||
level=info msg="Loading configuration file" path=.pint.hcl | ||
level=debug msg="File parsed" path=rules/0001.yml rules=1 | ||
level=debug msg="Starting query workers" name=prom uri=http://127.0.0.1:7103 workers=16 | ||
level=debug msg="Found recording rule" lines="6 8" path=rules/0001.yml record=colo:test1 | ||
level=debug msg="Configured checks for rule" enabled=["promql/syntax","alerts/for","alerts/comparison","alerts/template","promql/fragile","promql/regexp"] path=rules/0001.yml rule=colo:test1 | ||
level=debug msg="Stopping query workers" name=prom uri=http://127.0.0.1:7103 | ||
-- rules/0001.yml -- | ||
# pint file/disable promql/series(+bar) | ||
# pint file/disable promql/rate(+bar) | ||
# pint file/disable promql/range_query(+bar) | ||
# pint file/disable labels/conflict(+foo) | ||
|
||
- record: "colo:test1" | ||
# pint file/disable rule/duplicate(+foo) | ||
expr: sum(foo) without(job) | ||
|
||
# pint file/disable promql/vector_matching(+foo) | ||
|
||
-- .pint.hcl -- | ||
prometheus "prom" { | ||
uri = "http://127.0.0.1:7103" | ||
tags = ["foo", "bar"] | ||
} | ||
parser { | ||
relaxed = [".*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters