mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 08:33:06 +00:00
2bd510a63e
Previously it would set no preconditions and check no postconditions, as the `groups` member was empty. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
6 lines
129 B
YAML
6 lines
129 B
YAML
groups:
|
|
- name: test
|
|
rules:
|
|
- record: job:http_requests:rate5m
|
|
expr: sum by (job)(rate(http_requests_total[5m]))
|