2023-01-19 05:51:26 -08:00
|
|
|
groups:
|
|
|
|
- name: aligned
|
2023-01-19 07:11:44 -08:00
|
|
|
align_evaluation_time_on_interval: true
|
2023-01-19 05:51:26 -08:00
|
|
|
interval: 5m
|
|
|
|
rules:
|
|
|
|
- record: job:http_requests:rate5m
|
|
|
|
expr: sum by (job)(rate(http_requests_total[5m]))
|
|
|
|
|
|
|
|
- name: aligned_with_crazy_interval
|
2023-01-19 07:11:44 -08:00
|
|
|
align_evaluation_time_on_interval: true
|
2023-01-19 05:51:26 -08:00
|
|
|
interval: 1m27s
|
|
|
|
rules:
|
|
|
|
- record: job:http_requests:rate5m
|
|
|
|
expr: sum by (job)(rate(http_requests_total[5m]))
|
|
|
|
|
|
|
|
- name: unaligned_default
|
|
|
|
interval: 5m
|
|
|
|
rules:
|
|
|
|
- record: job:http_requests:rate5m
|
|
|
|
expr: sum by (job)(rate(http_requests_total[5m]))
|
|
|
|
|
|
|
|
- name: unaligned_explicit
|
|
|
|
interval: 5m
|
2023-01-19 07:11:44 -08:00
|
|
|
align_evaluation_time_on_interval: false
|
2023-01-19 05:51:26 -08:00
|
|
|
rules:
|
|
|
|
- record: job:http_requests:rate5m
|
|
|
|
expr: sum by (job)(rate(http_requests_total[5m]))
|