mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-15 18:14:06 -08:00
28 lines
765 B
YAML
28 lines
765 B
YAML
|
groups:
|
||
|
- name: aligned
|
||
|
align_execution_time_on_interval: true
|
||
|
interval: 5m
|
||
|
rules:
|
||
|
- record: job:http_requests:rate5m
|
||
|
expr: sum by (job)(rate(http_requests_total[5m]))
|
||
|
|
||
|
- name: aligned_with_crazy_interval
|
||
|
align_execution_time_on_interval: true
|
||
|
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
|
||
|
align_execution_time_on_interval: false
|
||
|
rules:
|
||
|
- record: job:http_requests:rate5m
|
||
|
expr: sum by (job)(rate(http_requests_total[5m]))
|