From 685f9c3c984d5733da5222dddae1f4ca745dc9d7 Mon Sep 17 00:00:00 2001 From: hagen1778 Date: Tue, 24 Oct 2023 09:31:57 +0200 Subject: [PATCH] deployment/alerts: make `RemoteWriteConnectionIsSaturated` expr readable Signed-off-by: hagen1778 --- deployment/docker/alerts-vmagent.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deployment/docker/alerts-vmagent.yml b/deployment/docker/alerts-vmagent.yml index b4f4ee9e0..6d7201fff 100644 --- a/deployment/docker/alerts-vmagent.yml +++ b/deployment/docker/alerts-vmagent.yml @@ -64,8 +64,11 @@ groups: - alert: RemoteWriteConnectionIsSaturated expr: | - sum(rate(vmagent_remotewrite_send_duration_seconds_total[5m])) by(job, instance, url) - > 0.9 * max(vmagent_remotewrite_queues) by(job, instance, url) + ( + sum(rate(vmagent_remotewrite_send_duration_seconds_total[5m])) by(job, instance, url) + / + max(vmagent_remotewrite_queues) by(job, instance, url) + ) > 0.9 for: 15m labels: severity: warning