From adc8807851b87257964fab57e064771520751872 Mon Sep 17 00:00:00 2001 From: ravilr Date: Sun, 31 Jan 2021 12:07:49 -0800 Subject: [PATCH] Update remote-write alert rules mixin (#8423) Signed-off-by: ravilr --- documentation/prometheus-mixin/alerts.libsonnet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/prometheus-mixin/alerts.libsonnet b/documentation/prometheus-mixin/alerts.libsonnet index 85bde6a02..f555a4cdf 100644 --- a/documentation/prometheus-mixin/alerts.libsonnet +++ b/documentation/prometheus-mixin/alerts.libsonnet @@ -158,12 +158,12 @@ alert: 'PrometheusRemoteStorageFailures', expr: ||| ( - rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[5m]) + (rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[5m]) or rate(prometheus_remote_storage_samples_failed_total{%(prometheusSelector)s}[5m])) / ( - rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[5m]) + (rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[5m]) or rate(prometheus_remote_storage_samples_failed_total{%(prometheusSelector)s}[5m])) + - rate(prometheus_remote_storage_succeeded_samples_total{%(prometheusSelector)s}[5m]) + (rate(prometheus_remote_storage_succeeded_samples_total{%(prometheusSelector)s}[5m]) or rate(prometheus_remote_storage_samples_total{%(prometheusSelector)s}[5m])) ) ) * 100