Root-cause grouping: one incident for a failure and everything it takes down #58

Closed
opened 2026-11-13 19:47:13 +00:00 by jfro · 0 comments
Owner

When one thing fails, everything that depends on it fails too. If a Proxmox node goes down, you get one report per guest, plus failing Uptime Kuma checks, plus Docker/Dokploy containers that can't be reached. Each opens its own report, sends its own notification and queues its own diagnosis, and those diagnoses all arrive at the same answer separately.

Instead, group them into one incident: a root report with the others listed under it as effects. That gives one notification, one diagnosis, and one place to look.

How reports get linked

  1. What sources already know (high confidence). Signals get an optional parent field: a reference to another signal's key, in the same source or another one.
    • Proxmox: guest → node (and a node's storage → node)
    • Kubernetes: pod → node
    • Docker / Dokploy: container → host
    • UniFi (#55): device → its uplink device
  2. Links you set (high confidence). A small dependency map in settings, like "Kuma monitor nextcloud depends on Proxmox guest nextcloud (pve2)" or "Docker source dokploy-1 runs on Proxmox guest 105". Use the same search picker as Proxmox rules. Suggest links by matching hostnames and IPs across sources, for you to confirm.
  3. Time (low confidence, suggestion only). When several reports open within a short window, typically a minute, show "these opened together, probably related" on the report. It doesn't group them or hold back notifications, but it's passed to diagnosis as a hint.

Behaviour

  • When a report's parent (directly or further up) is open, the report is attached to that parent's incident:
    • It's shown under the root report on the dashboard and in history, collapsed by default ("pve2 down + 6 affected").
    • It sends no notification of its own. The root's notification lists the affected items, and an update goes out if more join within a few minutes.
    • It isn't diagnosed on its own. The root's diagnosis gets the effects' facts as context.
  • When the root resolves, the effects resolve normally as their signals recover. Any effect still failing a few minutes after the root resolves is split off into a report of its own, with its own notification and diagnosis, because it's a separate problem.
  • If an effect opens before its parent (e.g. Kuma notices before Proxmox does), it's attached as soon as the parent opens, and its notification is held back if it hasn't gone out yet. To make that possible, parents could get a short grace period before effects notify. The grace period is an open question.
  • Report details for an effect: "Caused by: pve2 down" with a link. For the root: a list of affected items.
  • Ignored or silenced (#56) parents: effects get the same treatment, so silencing a node silences its guests.
  • Timeline (#57): "attached to incident X" / "split off".

Diagnosis

  • The root's diagnosis covers the whole incident, with the root's facts plus a summary of each effect, and says whether everything is explained by the root cause.
  • The AI can suggest a link it found ("these failing Kuma checks all point at 10.0.5.20, which is guest 105") as a dependency for you to confirm.

Open questions

  • How long to wait before an effect notifies, in case its parent opens: none, a fixed 60s, or per source?
  • Across sources, should links use stable item keys or hostname/IP matching? Keys are more reliable, but IPs change.
  • One level of nesting or a whole tree? (Switch → Proxmox node → guest → Kuma check.) The data should allow a tree, but the UI could show it flat under the top root.
  • Does this fit the existing fingerprint / report_ignores model, or does it need its own incidents table? Leaning toward a nullable parent_report_id on reports, with no new table.

Done when

  • Proxmox guests → node links are reported by the Proxmox source, and at least one cross-source link type (Kuma → Proxmox guest) can be set in settings.
  • When a node goes down, you get one notification and one diagnosis covering the node and its affected guests and checks.
  • Effects still failing after the root resolves are split off and notify on their own.
  • The dashboard and history show incidents grouped under their root.
  • Tests cover: the parent opening first, the effect opening first, the root resolving with an effect still failing, and silencing a parent.
  • There are no new dependencies.
When one thing fails, everything that depends on it fails too. If a Proxmox node goes down, you get one report per guest, plus failing Uptime Kuma checks, plus Docker/Dokploy containers that can't be reached. Each opens its own report, sends its own notification and queues its own diagnosis, and those diagnoses all arrive at the same answer separately. Instead, group them into one **incident**: a root report with the others listed under it as effects. That gives one notification, one diagnosis, and one place to look. **How reports get linked** 1. **What sources already know** (high confidence). Signals get an optional `parent` field: a reference to another signal's key, in the same source or another one. - Proxmox: guest → node (and a node's storage → node) - Kubernetes: pod → node - Docker / Dokploy: container → host - UniFi (#55): device → its uplink device 2. **Links you set** (high confidence). A small dependency map in settings, like "Kuma monitor *nextcloud* depends on Proxmox guest *nextcloud* (pve2)" or "Docker source *dokploy-1* runs on Proxmox guest 105". Use the same search picker as Proxmox rules. Suggest links by matching hostnames and IPs across sources, for you to confirm. 3. **Time** (low confidence, suggestion only). When several reports open within a short window, typically a minute, show "these opened together, probably related" on the report. It doesn't group them or hold back notifications, but it's passed to diagnosis as a hint. **Behaviour** - When a report's parent (directly or further up) is open, the report is attached to that parent's incident: - It's shown under the root report on the dashboard and in history, collapsed by default ("pve2 down + 6 affected"). - It sends no notification of its own. The root's notification lists the affected items, and an update goes out if more join within a few minutes. - It isn't diagnosed on its own. The root's diagnosis gets the effects' facts as context. - When the root resolves, the effects resolve normally as their signals recover. Any effect still failing a few minutes after the root resolves is split off into a report of its own, with its own notification and diagnosis, because it's a separate problem. - If an effect opens before its parent (e.g. Kuma notices before Proxmox does), it's attached as soon as the parent opens, and its notification is held back if it hasn't gone out yet. To make that possible, parents could get a short grace period before effects notify. The grace period is an open question. - Report details for an effect: "Caused by: pve2 down" with a link. For the root: a list of affected items. - Ignored or silenced (#56) parents: effects get the same treatment, so silencing a node silences its guests. - Timeline (#57): "attached to incident X" / "split off". **Diagnosis** - The root's diagnosis covers the whole incident, with the root's facts plus a summary of each effect, and says whether everything is explained by the root cause. - The AI can suggest a link it found ("these failing Kuma checks all point at 10.0.5.20, which is guest 105") as a dependency for you to confirm. **Open questions** - How long to wait before an effect notifies, in case its parent opens: none, a fixed 60s, or per source? - Across sources, should links use stable item keys or hostname/IP matching? Keys are more reliable, but IPs change. - One level of nesting or a whole tree? (Switch → Proxmox node → guest → Kuma check.) The data should allow a tree, but the UI could show it flat under the top root. - Does this fit the existing `fingerprint` / `report_ignores` model, or does it need its own `incidents` table? Leaning toward a nullable `parent_report_id` on reports, with no new table. **Done when** - Proxmox guests → node links are reported by the Proxmox source, and at least one cross-source link type (Kuma → Proxmox guest) can be set in settings. - When a node goes down, you get one notification and one diagnosis covering the node and its affected guests and checks. - Effects still failing after the root resolves are split off and notify on their own. - The dashboard and history show incidents grouped under their root. - Tests cover: the parent opening first, the effect opening first, the root resolving with an effect still failing, and silencing a parent. - There are no new dependencies.
jfro added this to the v1.2 milestone 2026-11-13 19:47:13 +00:00
jfro closed this issue 2026-11-14 15:08:07 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/lamplighter#58
No description provided.