Skip to content

Event log: record error episodes from the dashboard's own detectors #4433

Backlog

Description

@pithead-architect

What's the problem

Part of #4431. The dashboard detects faults and fires alert edges, but it keeps no durable record of them. With no notification channel on (the default), an error leaves nothing to look at later. The edges are the _record_incident(EVT_*) calls in dashboard/mining_dashboard/service/notify/:

  • alert_edges.py: node down, disk space, DB unhealthy, DB reset, wallet changed, XvB no share, clearnet exposed, XvB registration, hashrate low, high reject rate;
  • alert_service.py: worker offline, container unhealthy, hashrate loss;
  • egress_firewall_edges.py, monero_health_edges.py, tari_node_edges.py.

What it impacts

Operators reviewing what went wrong, and the Errors filter and attention item in #D.

How I found it

A read-only read of develop-v2.1.0 at bfd061f (the edge list above). The monitoring-ping failure record (ping_failures, #4037) exists on develop only. It reaches develop-v2.1.0 with the next 2.0.x forward merge.

How important is it

Medium. Blocked on #4432 (the store). The monitoring-ping part also waits for the forward merge that brings ping_failures to develop-v2.1.0.

Acceptance criteria

Possible solutions

  • Call record_event at each edge, next to _record_incident (recommended). One place per edge, and the parity test keeps them in step.
  • Have _record_incident itself write the event. This is smaller, but it fires only for edges that count toward the digest, and it carries no subject or text slots.

Activity

  1. added this to the v2.1.0 milestone on Nov 24, 2026
  2. added
    enhancement
    dashboard
    size:M
    on Nov 24, 2026
  3. pithead-developer commented on Nov 25, 2026

    @pithead-developer
    Contributor

    Blocked before work can start: the store this issue writes to does not exist on the base branch yet.

    • Every acceptance bullet records episodes through record_event. That helper and the event_log table are pithead#4432, and they are not on develop-v2.1.0 — verified at its tip 190234b, where record_event, event_log_store and event_log appear in no file on the branch.
    • The store and the episode semantics are in flight as PR test: error episodes keyed by (kind, subject) with fake-clock tests (#4509) #4524 (pithead#4509), which adds dashboard/mining_dashboard/service/event_log_store.py — record_event with kind, subject, label, severity and template slots, plus get_open_episodes(). This issue's detectors are exactly the callers of that API, so wiring them now would pin an API still under review and collide with that branch.
    • The monitoring-ping acceptance bullet also needs the live failure stream in healthchecks.py (ping_failures), which exists on develop only; it reaches develop-v2.1.0 with the forward merge tracked by pithead#4502.

    What is finished here: both prerequisites verified against the base, and the producer side mapped — 19 _record_incident call sites across alert_edges.py, alert_service.py, egress_firewall_edges.py, monero_health_edges.py and tari_node_edges.py are the edges the parity test must enumerate. The wiring and the parity test start on top of the merged store.

    What unblocks this: pithead#4432 closing with its store on develop-v2.1.0 (currently delivered through PR #4524), pithead#4509's episode layer landing, and pithead#4502's forward merge for the monitoring-ping row. The runner resumes this session when the blocker closes.

  4. pithead-developer commented on Nov 25, 2026

    @pithead-developer
    Contributor

    Blocked on #4432. Blocked before work can start: every acceptance bullet records episodes through record_event, and that helper plus the event_log table (pithead#4432) are not on develop-v2.1.0 — verified at tip 190234b, where record_event, event_log_store and event_log appear in no file on that branch. The store and episode semantics are in flight as PR #4524 (pithead#4509), which adds dashboard/mining_dashboard/service/event_log_store.py (record_event with kind, subject, label, severity and template slots; get_open_episodes); this issue's detectors are exactly its callers, so wiring them now would pin an API still under review and collide with that branch. The monitoring-ping bullet additionally needs the healthchecks.py failure stream (ping_failures), which reaches develop-v2.1.0 only via the forward merge tracked by pithead#4502. Finished here: both prerequisites verified against the base and the producer side mapped (19 _record_incident call sites across alert_edges.py, alert_service.py, egress_firewall_edges.py, monero_health_edges.py, tari_node_edges.py); the parity test and wiring start on top of the merged store. Full explanation posted as a comment on the issue (#4433 (comment)). Unblocks when pithead#4432 closes with its store landed (currently delivered through PR #4524), pithead#4509's episode layer lands, and pithead#4502's forward merge lands for the monitoring-ping row.

    The runner resumes this issue when that one closes.

  5. added
    blocked
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockeddashboardenhancementsize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions