|
|
@@ -26,8 +26,8 @@ groups:
|
|
|
changes within the last hour
|
|
|
summary: a high number of leader changes within the etcd cluster are happening
|
|
|
- alert: HighNumberOfFailedGRPCRequests
|
|
|
- expr: sum(rate(etcd_grpc_requests_failed_total{job="etcd"}[5m])) BY (grpc_method)
|
|
|
- / sum(rate(etcd_grpc_total{job="etcd"}[5m])) BY (grpc_method) > 0.01
|
|
|
+ expr: sum(rate(grpc_server_handled_total{grpc_code!="OK",job="etcd"}[5m])) BY (grpc_service, grpc_method)
|
|
|
+ / sum(rate(grpc_server_handled_total{job="etcd"}[5m])) BY (grpc_service, grpc_method) > 0.01
|
|
|
for: 10m
|
|
|
labels:
|
|
|
severity: warning
|
|
|
@@ -36,8 +36,8 @@ groups:
|
|
|
on etcd instance {{ $labels.instance }}'
|
|
|
summary: a high number of gRPC requests are failing
|
|
|
- alert: HighNumberOfFailedGRPCRequests
|
|
|
- expr: sum(rate(etcd_grpc_requests_failed_total{job="etcd"}[5m])) BY (grpc_method)
|
|
|
- / sum(rate(etcd_grpc_total{job="etcd"}[5m])) BY (grpc_method) > 0.05
|
|
|
+ expr: sum(rate(grpc_server_handled_total{grpc_code!="OK",job="etcd"}[5m])) BY (grpc_service, grpc_method)
|
|
|
+ / sum(rate(grpc_server_handled_total{job="etcd"}[5m])) BY (grpc_service, grpc_method) > 0.05
|
|
|
for: 5m
|
|
|
labels:
|
|
|
severity: critical
|
|
|
@@ -46,7 +46,7 @@ groups:
|
|
|
on etcd instance {{ $labels.instance }}'
|
|
|
summary: a high number of gRPC requests are failing
|
|
|
- alert: GRPCRequestsSlow
|
|
|
- expr: histogram_quantile(0.99, rate(etcd_grpc_unary_requests_duration_seconds_bucket[5m]))
|
|
|
+ expr: histogram_quantile(0.99, sum(rate(grpc_server_handling_seconds_bucket{job="etcd",grpc_type="unary"}[5m])) by (grpc_service, grpc_method, le))
|
|
|
> 0.15
|
|
|
for: 10m
|
|
|
labels:
|