Add parse alerting for rules files (#16601)
Builds over https://github.com/prometheus/prometheus/pull/16462 Addresses comments, adds invalid rules file Signed-off-by: subhramit <subhramit.bb@live.in> Co-authored-by: marcodebba <marcodebonis74@gmail.com>pull/16637/head
parent
2834a665ed
commit
44e27a876e
@ -0,0 +1,6 @@ |
||||
groups: |
||||
- name: invalid |
||||
rules: |
||||
- record: job:http_requests:rate5m |
||||
expr: sum by (job)(rate(http_requests_total[5m])) |
||||
unexpected_field: this_field_should_not_be_here |
Loading…
Reference in new issue