From 61617eb2d9a91d4fba000a71df42c12bc87011ad Mon Sep 17 00:00:00 2001 From: beorn7 Date: Mon, 28 Oct 2019 21:36:10 +0100 Subject: [PATCH] Fix PrometheusRemoteWriteDesiredShards This rule has the same labels on both sides. We don't want `group_right` and `on`, we want nothing. Signed-off-by: beorn7 --- documentation/prometheus-mixin/alerts.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/prometheus-mixin/alerts.libsonnet b/documentation/prometheus-mixin/alerts.libsonnet index 71fad98c2e..870631685e 100644 --- a/documentation/prometheus-mixin/alerts.libsonnet +++ b/documentation/prometheus-mixin/alerts.libsonnet @@ -218,7 +218,7 @@ # https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details. ( max_over_time(prometheus_remote_storage_shards_desired{%(prometheusSelector)s}[5m]) - > on(job, instance) group_right + > max_over_time(prometheus_remote_storage_shards_max{%(prometheusSelector)s}[5m]) ) ||| % $._config,