mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
940f83a540
NOTE: Rebased from main after refactor in #13014 Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
29 lines
905 B
YAML
29 lines
905 B
YAML
groups:
|
|
- name: http
|
|
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: TooManyHTTPRequests
|
|
expr: job:http_requests:rate15m > 100
|
|
|
|
- name: grpc
|
|
rules:
|
|
# independents
|
|
- record: job:grpc_requests:rate1m
|
|
expr: sum by (job)(rate(grpc_requests_total[1m]))
|
|
- record: job:grpc_requests:rate5m
|
|
expr: sum by (job)(rate(grpc_requests_total[5m]))
|
|
|
|
# dependents
|
|
- record: job:grpc_requests:rate15m
|
|
expr: sum by (job)(rate(grpc_requests_total[15m]))
|
|
- record: TooManyGRPCRequests
|
|
expr: job:grpc_requests:rate15m > 100
|