-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix promtool check config not erroring properly on failures
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
- Loading branch information
1 parent
4aa693d
commit 04208dd
Showing
6 changed files
with
95 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
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 @@ | ||
not-prometheus: |
Empty file.
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,2 @@ | ||
rule_files: | ||
- prometheus-rules.lint.yml |
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,17 @@ | ||
groups: | ||
- name: example | ||
rules: | ||
- alert: HighRequestLatency | ||
expr: job:request_latency_seconds:mean5m{job="myjob"} > 0.5 | ||
for: 10m | ||
labels: | ||
severity: page | ||
annotations: | ||
summary: High request latency | ||
- alert: HighRequestLatency | ||
expr: job:request_latency_seconds:mean5m{job="myjob"} > 0.5 | ||
for: 10m | ||
labels: | ||
severity: page | ||
annotations: | ||
summary: High request latency |