Fix promtool check config not erroring properly on failures (#10952)
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>pull/10958/head
parent
90583c8906
commit
13bd4fd3c8
@ -0,0 +1 @@ |
||||
not-prometheus: |
||||
@ -0,0 +1,2 @@ |
||||
rule_files: |
||||
- prometheus-rules.lint.yml |
||||
@ -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 |
||||
Loading…
Reference in new issue