{# settings/system.html — Steward's own health (#5467): a verdict, then each of its process metrics now and over the last day, from the self-monitor tick. Each is a metric an alert rule can watch under "Steward itself". #} {% extends "base.html" %} {% from "_macros.html" import crumbs %} {% from "settings/_tabs.html" import settings_tabs %} {% block title %}Settings — System — Steward{% endblock %} {% block section_tabs %}{{ settings_tabs("system") }}{% endblock %} {% block breadcrumb %}{{ crumbs([("Settings", "/settings/"), ("System", "")]) }}{% endblock %} {% block content %}

{%- if not seen %}No readings yet: the first arrive within a minute of Steward starting. {%- elif problems %}{% set said = problems|join("; ") %}{{ said[:1]|upper }}{{ said[1:] }}. {%- else %}Steward is running normally.{% endif -%}

Steward itself

{% for r in rows %} {% endfor %}
MeasureNowLast 24 h
{{ metric_label(r.metric) }}
{{ metric_about(r.metric) }}
{{ metric_value(r.metric, r.now) }} {%- if r.at %}
{{ r.at|ago }}
{% endif %}
{%- if r.low is not none %}{{ metric_value(r.metric, r.low) }} – {{ metric_value(r.metric, r.high) }} {%- else %}—{% endif -%}

Recorded each minute (the cleanup each hour). Any of these can be watched by an alert rule: pick the source "Steward itself".

{# Storage (#5469): Postgres's own figures for each table, then what the hourly cleanup last removed. Read from the catalog, never by counting. #}

Storage

The database takes {{ storage.total|bytes }} on disk.

{% for t in storage.tables %} {% endfor %} {% if storage.rest.count %} {% endif %}
TableOn diskRows (estimate)
{{ t.name }} {{ t.bytes|bytes }} {% if t.rows is not none %}{{ "{:,}".format(t.rows) }}{% else %}—{% endif %}
+{{ storage.rest.count }} smaller tables {{ storage.rest.bytes|bytes }}

Last cleanup

{% if not cleanup %}

None has finished since this version started: the cleanup runs each hour.

{% else %}

Ran {{ cleanup.at|ago }} and took {{ cleanup.secs|duration }}. {%- if not cleanup.removed %} Nothing was past its window ({{ cleanup.passes }} passes).{% endif %}

{% if cleanup.removed %}
{% for what, n in cleanup.removed %} {% endfor %}
What wentRows
{{ what }} {{ "{:,}".format(n) }}
{% endif %} {% endif %}

How long each kind of data is kept is set under General (data and audit log) and Thresholds & retention (metrics, Docker and logs).

{% endblock %}