Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit e416b13

Browse files
committed
docs/mixin: simplify PromscaleStorageHighErrorRate alert
Signed-off-by: Paweł Krupa (paulfantom) <[email protected]>
1 parent fc92099 commit e416b13

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/mixin/alerts/alerts.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,23 +194,22 @@ groups:
194194
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleCacheHighNumberOfEvictions.md
195195
- name: promscale-database-connection
196196
rules:
197-
- alert: PromscaleDBHighErrorRate
197+
- alert: PromscaleStorageHighErrorRate
198198
expr: |
199199
(
200-
sum by (job, instance, namespace) (
201-
# Error counter exists for query, query_row & exec, and not for send_batch.
202-
rate(promscale_database_request_errors_total{method=~"query.*|exec"}[5m])
200+
sum by (job, instance, namespace, method) (
201+
rate(promscale_database_request_errors_total[5m])
203202
)
204203
/
205-
sum by (job, instance, namespace) (
206-
rate(promscale_database_requests_total{method=~"query.*|exec"}[5m])
204+
sum by (job, instance, namespace, method) (
205+
rate(promscale_database_requests_total[5m])
207206
)
208207
) > 0.05
209208
labels:
210209
severity: warning
211210
annotations:
212211
summary: Promscale experiences a high error rate when connecting to the database.
213-
description: "Promscale connection with the database has an error of {{ $value | humanizePercentage }}."
212+
description: "Promscale connection with the database has an error rate of {{ $value | humanizePercentage }}."
214213
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleDBHighErrorRate.md
215214
- alert: PromscaleStorageHighLatency
216215
expr: |

0 commit comments

Comments
 (0)