The design document describes the whole system. These specs break it into sub-features that can be built, reviewed and tested separately. Infrastructure choices they rely on are recorded in the ADRs.
Each spec follows the same shape: summary, scope per phase, behavior, data, API, acceptance criteria, open questions. All specs are Draft until reviewed.
The order follows dependencies: nothing produces results until the plugin SDK and runner exist, and nothing alerts until state and notifications exist.
| # | Feature | Depends on | Status |
|---|---|---|---|
| F01 | Tenancy, API keys, roles and audit log | — | Draft |
| F02 | Devices, credentials, templates and test connection | F01 | Draft |
| F03 | Plugin SDK and registry | — | Draft |
| F04 | Scheduler and runner | F02, F03 | Draft |
| F05 | State machine and incidents | F04 | Draft |
| F06 | Webhook notifications and alert routes | F05 | Draft |
| F07 | Metrics store, rollups and retention | F04 | Draft |
| F08 | Push ingestion: HTTP push, MQTT, last-seen | F05, F07 | Draft |
| F09 | Remote probes (enrollment and assignment in MVP, failover in phase 2) | F04 | Draft |
| F10 | MVP check and collector catalog | F03 | Draft |
| F11 | Monitoring the monitor | F04, F06 | Draft |
| F12 | Replacing the FixLean sensor collector: embedded MQTT broker, sensor model, migration | F05, F07, F08 | Draft |
| F13 | Usage metering: check-hours per device and check, for billing | F01, F03, F04 | Draft |
| F15 | Monitoring agent for Docker images: host, containers, probes and services over HTTP push | F03, F05, F07, F08 | Draft, phase 1 built |
| # | Feature | Phase | Depends on | Status |
|---|---|---|---|---|
| F14 | LLM monitoring: inference endpoints, GPU scraping, OpenTelemetry traces, cost and quality evaluation | 2 and 3 | F03, F05, F07, F08, F13 | Draft |
flowchart LR
F01 --> F02 --> F04
F03 --> F04
F03 --> F10
F04 --> F05 --> F06
F04 --> F07
F05 --> F08
F07 --> F08
F04 --> F09
F04 --> F11
F06 --> F11
F05 --> F12
F08 --> F12
F01 --> F13
F03 --> F13
F04 --> F13
Current status of each milestone: implementation progress.
| Milestone | Contents | Demo |
|---|---|---|
| M1 — skeleton | Repo layout, CI, migrations, F01, F03, HTTP and ping plugins | Create a tenant and key; GET /v1/plugins lists two plugins |
| M2 — first loop | F02, F04, F05, F06 (single node) | Add a device with a ping and HTTP check; stop the target; a signed monitoring.incident.opened webhook arrives in n8n |
| M3 — metrics | F07, Grafana data source and first dashboards | Interface and latency graphs in Grafana; retention changed via API drops partitions |
| M3.5 — usage metering | F13: check periods, hourly close, usage API pulled by PlusClouds billing | GET /v1/usage/tenants returns weighted check-seconds per account for each closed hour |
| M4 — alert noise and targets | F06 grouping (group_by, group_wait) and repeat_interval, F05 dependency suppression, then F10: SNMP, Redfish/IPMI, RTSP, XCP-ng, UPS/PDU |
A switch failure sends one grouped notification and suppresses the incidents behind it; our datacenter's switches, servers, cameras and XCP-ng pool are monitored |
| M5 — push and probes | F08, F09 (basic), F11 | MQTT sensors report; one remote site runs a probe; the dead man's switch fires when the core stops |
| M6 — FixLean shadow | F12 steps 0–2 | Engine in shadow mode against the current collector's broker produces the same threshold events |
| Gate 1 | Load test at 10,000 simulated devices (ADR-0003), security review | Live on our own datacenter |
Planned, requested 2026-10-05: replication between monitoring servers. Several monitoring server installations keep the same devices and hosts (sites, devices, dependencies, checks and credentials) in sync, so one inventory is monitored from more than one place. Not built and not yet specified. Open questions for the spec:
- Direction: one primary that others follow, or changes accepted on any server.
- Scope: whether state, incidents and metrics are replicated or only the configuration.
- Identity: which ID is shared across servers (external IDs already exist per ADR-0012).
- Credentials: secrets are encrypted per installation (ADR-0006), so replication needs re-encryption or a shared key.
- Relation to remote probes (F09), which already run checks from other locations against one server.
Specs will be written when phase 2 starts: dependency suppression and maintenance windows beyond the MVP basics, SNMP traps and syslog, templates and discovery (subnet, ONVIF, LLDP/CDP topology), VMware and Proxmox collectors, escalation schedules and on-call, BMC event logs and inventory change events, TimescaleDB acceleration, exec plugins, probe failover groups.