From d9d461c69b2f259b05635666b38cb73a7d82c334 Mon Sep 17 00:00:00 2001 From: Michael Pearson Date: Tue, 17 Sep 2024 11:43:30 +0100 Subject: [PATCH] fix: revert #644 --- ...bility-gauge-with-status-metric-and-integer-target.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring-as-code/src/sli-value-libraries/availability-gauge-with-status-metric-and-integer-target.libsonnet b/monitoring-as-code/src/sli-value-libraries/availability-gauge-with-status-metric-and-integer-target.libsonnet index bd944a89..e6bf6bf3 100644 --- a/monitoring-as-code/src/sli-value-libraries/availability-gauge-with-status-metric-and-integer-target.libsonnet +++ b/monitoring-as-code/src/sli-value-libraries/availability-gauge-with-status-metric-and-integer-target.libsonnet @@ -73,7 +73,7 @@ local createGraphPanel(sliSpec) = ).addTarget( prometheus.target( ||| - sum(avg_over_time(%(targetMetric)s{%(selectors)s}[%(evalInterval)s]) == bool 0) or vector(0) + sum(avg_over_time(%(targetMetric)s{%(selectors)s}[%(evalInterval)s]) >= 0 or vector(0)) == bool 0 ||| % { targetMetric: targetMetrics.target, counterIntegerTarget: sliSpec.counterIntegerTarget,