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

Commit fc92099

Browse files
committed
docs/mixin: PromscaleStorageHighLatency alert should not include exec method
1 parent 3349550 commit fc92099

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/mixin/alerts/alerts.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,20 +216,20 @@ groups:
216216
expr: |
217217
(
218218
histogram_quantile(0.9,
219-
sum by (job, instance, namespace, le) (
220-
rate(promscale_database_requests_duration_seconds_bucket[5m])
219+
sum by (job, instance, namespace, method, le) (
220+
rate(promscale_database_requests_duration_seconds_bucket{method!="exec"}[5m])
221221
)
222222
) > 5
223223
and
224-
sum by (job, instance, namespace) (
225-
rate(promscale_database_requests_duration_seconds_count[5m])
224+
sum by (job, instance, namespace, method) (
225+
rate(promscale_database_requests_duration_seconds_count{method!="exec"}[5m])
226226
) > 0
227227
)
228228
labels:
229229
severity: warning
230230
annotations:
231231
summary: Slow database response.
232-
description: "Slowest 10% of database requests are taking more than {{ $value | humanizeDuration }} seconds to respond."
232+
description: "Slowest 10% of database requests with method {{ $labels.method }} are taking more than {{ $value | humanizeDuration }} seconds to respond."
233233
runbook_url: https://github.com/timescale/promscale/blob/master/docs/runbooks/PromscaleStorageHighLatency.md
234234
- name: promscale-database
235235
rules:

0 commit comments

Comments
 (0)