Fix PrometheusRuleEvaluationSlow

Fixes the rule PrometheusRuleEvaluationSlow as it should fire if
prometheus_rule_group_last_duration_seconds takes longer than
prometheus_rule_group_interval_seconds.

prometheus_rule_group_last_duration_seconds: The duration of the last rule group evaluation.
prometheus_rule_group_interval_seconds: The interval of a rule group.
This commit is contained in:
Alexander Knipping 2020-03-17 15:14:40 +01:00
parent f5bcac33fe
commit c82df5d005

View file

@ -38,7 +38,7 @@ groups:
severity: error
- name: Prometheus rule evaluation slow
description: 'Prometheus rule evaluation took more time than the scheduled interval. I indicates a slower storage backend access or too complex query.'
query: 'prometheus_rule_group_last_duration_seconds < prometheus_rule_group_interval_seconds'
query: 'prometheus_rule_group_last_duration_seconds > prometheus_rule_group_interval_seconds'
severity: warning
- name: Prometheus notifications backlog
description: The Prometheus notification queue has not been empty for 10 minutes