7802ca263d
The dependency map being empty meant that all the rules were being set as having no dependencies or dependents. Which is the opposite of what we want Added two new tests that verify the behavior, they failed before the fix, running all the rules concurrently Signed-off-by: Julien Duchesne <julien.duchesne@grafana.com>
19 lines
761 B
YAML
19 lines
761 B
YAML
groups:
|
|
- name: indeterminate
|
|
rules:
|
|
# This shouldn't run in parallel because of the open matcher
|
|
- record: job:http_requests:rate1m
|
|
expr: sum by (job)(rate(http_requests_total[1m]))
|
|
- record: job:http_requests:rate5m
|
|
expr: sum by (job)(rate(http_requests_total[5m]))
|
|
- record: job:http_requests:rate15m
|
|
expr: sum by (job)(rate(http_requests_total[15m]))
|
|
- record: job:http_requests:rate30m
|
|
expr: sum by (job)(rate(http_requests_total[30m]))
|
|
- record: job:http_requests:rate1h
|
|
expr: sum by (job)(rate(http_requests_total[1h]))
|
|
- record: job:http_requests:rate2h
|
|
expr: sum by (job)(rate(http_requests_total[2h]))
|
|
- record: matcher
|
|
expr: '{job="job1"}'
|