You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DigitalOcean driver: authentication, inventory, and metrics #39
The first driver proves the core on the simplest authentication.
Requirements
REQ-DO-001 The driver MUST authenticate with a bearer token and verify the scopes it needs: droplet:read, load_balancer:read, monitoring:read.
REQ-DO-002 Discovery MUST list Droplets and load balancers with paging at 100 per page.
REQ-DO-003 Collection MUST read the catalog's Droplet and load balancer metrics for enabled data sources only.
REQ-DO-004 Metrics that need the metrics agent MUST report "agent not installed" when empty, and graphs for them MUST NOT be offered for such Droplets.
REQ-DO-005 401 MUST mark the credential invalid and 403 MUST mark a missing scope.
REQ-DO-006 Its operation allowlist MUST contain only GET requests under /v2/droplets, /v2/load_balancers, and /v2/monitoring/metrics.
Acceptance criteria
Recorded fixtures for every endpoint, including paging and errors.
Fixtures.tests/fixtures/digitalocean/ covers every endpoint the driver calls, and tests/Unit/DigitalOceanDriverTest.php covers paging and the 401, 403, 429 and 5xx errors. The fixtures come from the OpenAPI examples. The live run below returned the same response shapes.
Live graphs from a test account, 2026-11-15. I ran Cacti 1.2.31 with the plugin from the M3 stack (through #89) against the real API, storing the token in the plugin vault in a disposable database.
Discovery found all 5 Droplets, and the scope device got a CPU, a Bandwidth and a Memory graph for each, 15 graphs and 45 series.
Each collector run read exactly the 30 series DigitalOcean has: all 20 bandwidth series, and CPU and memory on the 2 Droplets with the metrics agent. The health page reported the account as partial, 30 of 45 (fix: count DigitalOcean cpu as an agent metric, from the first live check #91 makes CPU an agent metric).
After four Cacti poller runs, the RRDs held real values and the graphs rendered: bandwidth on all four interfaces for every Droplet (about 135/235 kbit/s public in/out on one), CPU of 4 to 6 percent, and memory of about 4.1 GB total.
One gap the run found, to fix in a follow-up after #85 merges. The graph action in tests/bin/lifecycle.php creates a graph the way New Graphs does, but skips New Graphs' push_out_host() call, so its data sources never reach the poller cache. The plugin itself isn't affected: graphs created on New Graphs are polled. For the live run I pushed the data sources out by hand. The follow-up makes the helper match New Graphs and has the integration test check the poller items.
Activity
feat: add the DigitalOcean driver
feat: M3 DigitalOcean driver and request budgets (#82)
somethingwithproof commentedon Nov 16, 2026
Both acceptance criteria are met.
Fixtures.
tests/fixtures/digitalocean/covers every endpoint the driver calls, andtests/Unit/DigitalOceanDriverTest.phpcovers paging and the 401, 403, 429 and 5xx errors. The fixtures come from the OpenAPI examples. The live run below returned the same response shapes.Live graphs from a test account, 2026-11-15. I ran Cacti 1.2.31 with the plugin from the M3 stack (through #89) against the real API, storing the token in the plugin vault in a disposable database.
partial, 30 of 45 (fix: count DigitalOcean cpu as an agent metric, from the first live check #91 makes CPU an agent metric).One gap the run found, to fix in a follow-up after #85 merges. The
graphaction intests/bin/lifecycle.phpcreates a graph the way New Graphs does, but skips New Graphs'push_out_host()call, so its data sources never reach the poller cache. The plugin itself isn't affected: graphs created on New Graphs are polled. For the live run I pushed the data sources out by hand. The follow-up makes the helper match New Graphs and has the integration test check the poller items.