mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-14 01:24:04 -08:00
15 lines
452 B
YAML
15 lines
452 B
YAML
|
groups:
|
||
|
- name: test
|
||
|
rules:
|
||
|
# independents
|
||
|
- 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]))
|
||
|
|
||
|
# dependents
|
||
|
- record: job:http_requests:rate15m
|
||
|
expr: sum by (job)(rate(http_requests_total[15m]))
|
||
|
- record: TooManyRequests
|
||
|
expr: job:http_requests:rate15m > 100
|