diff --git a/README.md b/README.md index 0fd1336..c16a895 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # plugin_gpu -A proposed Cacti 1.2 plugin that brings per-GPU utilization, memory, temperature, power, ECC errors, XID errors, and throttling reasons from NVIDIA and AMD tools into Cacti. Each GPU becomes an index of a data query on its node's device, so GPU graphs sit next to the node's other graphs under Cacti's permissions, and Thold and Maint can alert on and suppress them. +A Cacti 1.2 plugin that brings per-GPU utilization, memory, temperature, power, ECC errors, XID errors, and throttling reasons from NVIDIA and AMD tools into Cacti. Each GPU becomes an index of a data query on its node's device, so GPU graphs sit next to the node's other graphs under Cacti's permissions, and Thold and Maint can alert on and suppress them. -> **Status: milestone 2 (foundation).** The plugin installs, registers GPU nodes, and keeps GPU identity records, but it collects nothing: no vendor tool is run and no graph is created until milestone 3. Do not run it in production. Everything below the milestone 2 section describes the plan, not shipped behavior. +> **Status: in development, no release yet.** Milestone 2 (foundation) is merged on `main`: the plugin installs, registers GPU nodes, and keeps GPU identity records, but it collects nothing. No vendor tool is run and no graph is created until milestone 3, which is not on `main`. Milestone 1 research is written up from documentation and source; checks that need GPU hardware are still open. Do not run the plugin in production. Everything below the milestone 2 section describes the plan, not shipped behavior. ## Why @@ -38,9 +38,9 @@ These steps install the milestone 2 code to try it. They require Cacti 1.2.31 or 3. Give users the *GPU View* or *GPU Admin* realm under **Configuration > Users**. The installing user gets both. 4. Optionally adjust **Configuration > Settings > GPU**: *Mark Absent After* (default 3 successful collections, from 1 to 100) and *Keep Plugin Tables on Uninstall* (default on). -## Open question: how metrics reach Cacti +## Collection path -The largest undecided choice is the collection path: a Cacti poller on the GPU node, SNMP `extend`, scraping `dcgm-exporter`, or something else. Each puts the trust boundary in a different place. It is tracked as decision [#7](https://github.com/somethingwithproof/plugin_gpu/issues/7) and gated on measurements in milestone 1. The plan describes the options under [Collection paths](docs/PLAN.md#collection-paths). +Decision [#7](https://github.com/somethingwithproof/plugin_gpu/issues/7) chose SNMP `extend` on the GPU node: the node's administrator configures `snmpd` to run the vendor tool with a fixed argument list, and the plugin reads the output through Cacti's SNMP polling of that device. The reasons and rejected alternatives are in [ADR 0008](docs/decisions/0008-collect-through-snmp-extend.md). The collector is not implemented yet. A poller on the node and a `dcgm-exporter` scrape remain possible later backends; see [Collection paths](docs/PLAN.md#collection-paths). ## Compatibility targets @@ -60,7 +60,7 @@ The largest undecided choice is the collection path: a Cacti poller on the GPU n ```mermaid flowchart LR - NODE[GPU node: nvidia-smi, DCGM, amd-smi] -->|collection path, undecided| C[Collector] + NODE[GPU node: nvidia-smi, DCGM, amd-smi] -->|SNMP extend| C[Collector] C --> CACHE[(Plugin cache keyed by GPU UUID)] CACHE --> SS[Script server data query input] SS --> RRD[(Cacti RRD files, one data source per GPU)] diff --git a/docs/PLAN.md b/docs/PLAN.md index 832c11b..db3708e 100644 --- a/docs/PLAN.md +++ b/docs/PLAN.md @@ -1,6 +1,6 @@ # Cacti 1.2 GPU Plugin Plan -Status: proposal, revision 2 (2026-11-15). Revision 2 folds in the milestone 1 documentation and source research in [`docs/research/`](research/); items that need hardware are marked *live* and listed in each research page's Live checks table. Milestone 2 (foundation) is implemented: the PHP guard, lifecycle, realms and pages, node registry, GPU identity records, and the test harness. Where it differs from the text below, the difference is stated in place. Nothing that collects from a GPU exists yet. Statements about vendor tools, Cacti core, Thold, and net-snmp describe upstream behavior and cite the source that was checked, with the version or commit where one was available. Statements that could not be verified are listed as assumptions with the research issue that confirms them; they are not facts. Owner and estimates are not assigned; milestone 1 produces the estimates. +Status: in development, plan revision 2 (2026-11-15). Revision 2 folds in the milestone 1 documentation and source research in [`docs/research/`](research/); items that need hardware are marked *live* and listed in each research page's Live checks table. Milestone 2 (foundation) is implemented: the PHP guard, lifecycle, realms and pages, node registry, GPU identity records, and the test harness. Where it differs from the text below, the difference is stated in place. Milestone 3 is not on `main`, so nothing collects from a GPU yet: no vendor tool is run, no data query exists, and no graph is created. There is no release. Statements about vendor tools, Cacti core, Thold, and net-snmp describe upstream behavior and cite the source that was checked, with the version or commit where one was available. Statements that could not be verified are listed as assumptions with the research issue that confirms them; they are not facts. Owner and estimates are not assigned; milestone 1 produces the estimates. `plugin_gpu` brings per-GPU utilization, memory, temperature, power, ECC errors, XID errors, and clock throttling reasons from NVIDIA and AMD tools into Cacti 1.2. Each GPU becomes an index of a data query on its node's Cacti device, so operators see GPU graphs next to the node's other graphs, under Cacti's own permissions, and alert on them with Thold and Maint. @@ -165,7 +165,7 @@ Each assumption above was researched from documentation and source on 2026-11-15 | AMD fields and `rocm-smi` | Keys read from CLI source at ROCm 7.2.4; no `rocm-smi` target; real output *live* | [amd-smi](research/amd-smi.md) | | Cacti core rows | Confirmed by source, with corrections applied in this revision | [cacti-core](research/cacti-core.md) | -Evidence for decision #7 is collected in [research/collection-path.md](research/collection-path.md); it records no outcome. Estimates are in [research/estimates.md](research/estimates.md). +Evidence for decision #7 is collected in [research/collection-path.md](research/collection-path.md); it records no outcome; the decision is in [ADR 0008](decisions/0008-collect-through-snmp-extend.md). Estimates are in [research/estimates.md](research/estimates.md). ## Collection paths @@ -461,4 +461,4 @@ Not scheduled; revisited after phase 1: ## Upstream process -This repository holds the proposal and tracks its requirements as GitHub issues and milestones. Before code is proposed for the Cacti organization, open an issue there describing the problem, the phase plan, and the open decisions, and ask maintainers about the repository, name, attaching to existing devices, and the test harness (#28). No Thold or Maint change is needed. +This repository holds the plan and tracks its requirements as GitHub issues and milestones. Before code is proposed for the Cacti organization, open an issue there describing the problem, the phase plan, and the open decisions, and ask maintainers about the repository, name, attaching to existing devices, and the test harness (#28). No Thold or Maint change is needed.