Skip to content

Commit

Permalink
Test pint ci on gh
Browse files Browse the repository at this point in the history
  • Loading branch information
prymitive committed Mar 27, 2024
1 parent 0a36961 commit 24e85f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/pint/pint.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
ci {
include = [".github/pint/rules/.*"]
}
repository {
github {
maxComments = 1
}
}
4 changes: 2 additions & 2 deletions .github/pint/rules/1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ groups:
rules:
- alert: Service Is Down
expr: up == 0
for: 0s
for: 0m

- alert: Service Is Down
expr: up{job="abc"} == 0

- alert: Everything Is Down
expr: up:sum == 0
expr: up:count == 0
4 changes: 2 additions & 2 deletions .github/pint/rules/2.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
groups:
- name: test
rules:
- record: up:sum
expr: sum(up)
- record: up:count
expr: count(up > 0)

0 comments on commit 24e85f2

Please sign in to comment.