-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
193 additions
and
37 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
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,43 @@ | ||
http response prometheus /api/v1/status/config 200 {"status":"success","data":{"yaml":"rule_files:\n - rules/*\n"}} | ||
http response prometheus /api/v1/metadata 200 {"status":"success","data":{}} | ||
http response prometheus /api/v1/status/flags 200 {"status":"success","data":{"storage.tsdb.retention.time": "1d"}} | ||
http response prometheus /api/v1/query_range 200 {"status":"success","data":{"resultType":"matrix","result":[]}} | ||
http response prometheus /api/v1/query 200 {"status":"success","data":{"resultType":"vector","result":[{"metric":{},"value":[1666873962.795,"1"]}]}} | ||
http start prometheus 127.0.0.1:7168 | ||
|
||
exec bash -x ./test.sh & | ||
|
||
pint.ok --no-color -l debug watch --interval=5s --listen=127.0.0.1:6168 --pidfile=pint.pid rule_files prom | ||
! stdout . | ||
|
||
stderr 'level=DEBUG msg="Glob finder completed" count=2' | ||
stderr 'level=DEBUG msg="Glob finder completed" count=3' | ||
|
||
-- test.sh -- | ||
sleep 7 | ||
mv more/*.yaml rules/ | ||
sleep 7 | ||
cat pint.pid | xargs kill | ||
|
||
-- rules/1.yaml -- | ||
groups: | ||
- name: g1 | ||
rules: | ||
- alert: DownAlert1 | ||
expr: up == 0 | ||
-- rules/2.yaml -- | ||
groups: | ||
- name: g2 | ||
rules: | ||
- alert: DownAlert2 | ||
expr: up == 0 | ||
-- more/3.yaml -- | ||
groups: | ||
- name: g2 | ||
rules: | ||
- alert: DownAlert2 | ||
expr: up == 0 | ||
-- .pint.hcl -- | ||
prometheus "prom" { | ||
uri = "http://localhost:7168" | ||
} |
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
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
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
Oops, something went wrong.