{% extends "base.html" %} {% block title %}Alerts — Steward{% endblock %} {% from "_macros.html" import page_header, status_badge, empty_state %} {% block content %} {% call page_header("Alerts") %} History Maintenance New rule {% endcall %} {% if active %}
| State | Rule | Resource | Metric | |
|---|---|---|---|---|
|
{{ status_badge(state.state) }}
{% if state.no_data_since %}
{{ status_badge('no_data', title="No sample since " ~ (state.last_sample_at.strftime('%Y-%m-%d %H:%M UTC') if state.last_sample_at else 'the rule started watching')) }}
since {{ state.no_data_since|ago }}
{% endif %}
|
{{ rule.name }} | {{ rule.resource_name }} | {{ rule.metric_name }} {{ rule.operator.value }} {{ rule.threshold }} | {% if state.state.value == 'firing' %} {% endif %} |
| Name | Condition | Fire / clear | |
|---|---|---|---|
| {{ rule.name }} {% if not rule.enabled %} disabled {% endif %} | {{ rule.source_module }}/{{ rule.resource_name }} :{{ rule.metric_name }} {{ rule.operator.value }} {{ rule.threshold }} | {{ rule.consecutive_failures_required }} / {{ rule.consecutive_ok_required }} | History Edit |