|
|
@@ -107,7 +107,7 @@ groups:
|
|
|
message: '{{ $value }}% of requests for {{ $labels.method }} failed on etcd
|
|
|
instance {{ $labels.instance }}'
|
|
|
expr: |
|
|
|
- sum(rate(etcd_http_failed_total{job=~".*etcd.*"}[5m])) BY (method) / sum(rate(etcd_http_received_total{job=~".*etcd.*"}[5m]))
|
|
|
+ sum(rate(etcd_http_failed_total{job=~".*etcd.*", code!="404"}[5m])) BY (method) / sum(rate(etcd_http_received_total{job=~".*etcd.*"}[5m]))
|
|
|
BY (method) > 0.01
|
|
|
for: 10m
|
|
|
labels:
|
|
|
@@ -117,7 +117,7 @@ groups:
|
|
|
message: '{{ $value }}% of requests for {{ $labels.method }} failed on etcd
|
|
|
instance {{ $labels.instance }}.'
|
|
|
expr: |
|
|
|
- sum(rate(etcd_http_failed_total{job=~".*etcd.*"}[5m])) BY (method) / sum(rate(etcd_http_received_total{job=~".*etcd.*"}[5m]))
|
|
|
+ sum(rate(etcd_http_failed_total{job=~".*etcd.*", code!="404"}[5m])) BY (method) / sum(rate(etcd_http_received_total{job=~".*etcd.*"}[5m]))
|
|
|
BY (method) > 0.05
|
|
|
for: 10m
|
|
|
labels:
|