Merge "Trigger the target down alert after 2 minutes"

This commit is contained in:
Ales Komarek 2017-09-15 09:51:57 +00:00 committed by Gerrit Code Review
commit 22f7ab3572

View file

@ -6,12 +6,13 @@ server:
{% raw %} {% raw %}
PrometheusTargetDown: PrometheusTargetDown:
if: 'up != 1' if: 'up != 1'
for: 2m
labels: labels:
severity: critical severity: critical
service: prometheus service: prometheus
annotations: annotations:
summary: 'Prometheus endpoint {{ $labels.instance }} is down' summary: 'Prometheus endpoint {{ $labels.instance }} down'
description: 'Prometheus endpoint {{ $labels.instance }} is down for job {{ $labels.job }}' description: 'The Prometheus target {{ $labels.instance }} is down for the job {{ $labels.job }}.'
{% endraw %} {% endraw %}
{%- endif %} {%- endif %}
{%- if remote_storage_adapter.get('enabled', False) %} {%- if remote_storage_adapter.get('enabled', False) %}