From 5417071d15107bd70766a252b46beec79f920cc3 Mon Sep 17 00:00:00 2001 From: Lili Cosic <cosiclili@gmail.com> Date: Thu, 6 Aug 2020 10:56:11 +0200 Subject: [PATCH] jsonnet/prometheus-operator.libsonnet: Adjust alerts range --- jsonnet/kube-prometheus/alerts/prometheus-operator.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsonnet/kube-prometheus/alerts/prometheus-operator.libsonnet b/jsonnet/kube-prometheus/alerts/prometheus-operator.libsonnet index a8ddd13a..731994a2 100644 --- a/jsonnet/kube-prometheus/alerts/prometheus-operator.libsonnet +++ b/jsonnet/kube-prometheus/alerts/prometheus-operator.libsonnet @@ -7,7 +7,7 @@ { alert: 'PrometheusOperatorListErrors', expr: ||| - (sum by (controller,namespace) (rate(prometheus_operator_list_operations_failed_total{%(prometheusOperatorSelector)s}[1h])) / sum by (controller,namespace) (rate(prometheus_operator_list_operations_total{%(prometheusOperatorSelector)s}[1h]))) > 0.4 + (sum by (controller,namespace) (rate(prometheus_operator_list_operations_failed_total{%(prometheusOperatorSelector)s}[10m])) / sum by (controller,namespace) (rate(prometheus_operator_list_operations_total{%(prometheusOperatorSelector)s}[10m]))) > 0.4 ||| % $._config, labels: { severity: 'warning', @@ -20,7 +20,7 @@ { alert: 'PrometheusOperatorWatchErrors', expr: ||| - (sum by (controller,namespace) (rate(prometheus_operator_watch_operations_failed_total{%(prometheusOperatorSelector)s}[1h])) / sum by (controller,namespace) (rate(prometheus_operator_watch_operations_total{%(prometheusOperatorSelector)s}[1h]))) > 0.4 + (sum by (controller,namespace) (rate(prometheus_operator_watch_operations_failed_total{%(prometheusOperatorSelector)s}[10m])) / sum by (controller,namespace) (rate(prometheus_operator_watch_operations_total{%(prometheusOperatorSelector)s}[10m]))) > 0.4 ||| % $._config, labels: { severity: 'warning', -- GitLab