#5467 "Steward's own health: metrics, rules can watch them, a page that shows them". The self-monitor tick now records, under source "steward", resource "process": ingest_posts / ingest_failed / ingest_slowest_ms (the host-agent posts since the last tick, tallied in steward/core/health.py), db_roundtrip_ms (a timed SELECT 1), and unwatched_secs (the gap before this tick past watch.GAP_S, from Steward's own last sample). The hourly cleanup records cleanup_secs. The open-file pair is still recorded, and is now only skipped on its own where /proc is absent. All of these are in CORE_METRICS, so an alert rule can watch them under "Steward itself". Settings → System (/settings/system/, admin) shows a verdict first (failed posts, a gap in watching, open files near the limit), then each measure now and over the last day, with a sparkline scaled to its own peak. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
933 B
HTML
16 lines
933 B
HTML
{# settings/_tabs.html — the Settings section's pages as one strip of tabs, in
|
|
each page's section_tabs block above the trail, as Ansible's are (#5377).
|
|
`active` names the page or the one it sits under. #}
|
|
{% from "_macros.html" import section_tabs %}
|
|
{% macro settings_tabs(active) -%}
|
|
{{ section_tabs([("general", "General", "/settings/general/"),
|
|
("thresholds", "Thresholds & Retention", "/settings/thresholds/"),
|
|
("notifications", "Notifications", "/settings/notifications/"),
|
|
("reports", "Reports", "/settings/reports/"),
|
|
("auth", "Authentication", "/settings/auth/"),
|
|
("users", "Users", "/settings/users/"),
|
|
("ansible", "Ansible", "/settings/ansible/"),
|
|
("plugins", "Plugins", "/settings/plugins/"),
|
|
("system", "System", "/settings/system/")], active, "Settings") }}
|
|
{%- endmacro %}
|