Repository navigation
fix: count DigitalOcean cpu as an agent metric, from the first live check - #91
Merged
Merged
Conversation
…heck The first live run on #16 found that /v2/monitoring/metrics/droplet/cpu returns no series on Droplets without the metrics agent, although DigitalOcean's features page lists CPU among the default metrics. Bandwidth returned data on every Droplet. The catalog now marks cpu as an agent metric, so the default set is the four bandwidth series. The research pages record the other live results: cumulative cpu values and the full mode list, 120-second samples over an hour with downsampling for longer windows, 401 on a bad token, the rate-limit header values, and per_page=200 accepted. Expired and under-scoped tokens, load balancer metrics, and paging past one page are still open. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
This was referenced Nov 15, 2026
This was referenced Nov 16, 2026
somethingwithproof
added a commit
that referenced
this pull request
Nov 17, 2026
…es (#89) * test: measure collection and the health page at 1,000 and 10,000 series tests/bin/perf.php runs the real collector, DigitalOcean driver, guarded transport, and socket transport against a TLS fixture server, with only the host rewritten after the operation check. It times 1,000 series in four accounts, 1,000 in one account where the request budget stops at 250, and the health page over HTTP at 10,000 cached series, and prints the hardware and settings. An optional latency stands in for the provider's round trip. CI runs it on every job and fails only when 1,000 series do not finish within one poller interval. docs/performance.md publishes the results. Closes #47 Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * ci: measure after the Cacti log check, since the budget case warns on purpose Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * docs: add the live DigitalOcean latency to the performance results The first live check on #16 measured a 384 ms median round trip from a home connection, which at the default budget reads about 620 series a run. The fixture's five series per Droplet are no longer called agent-free: CPU needs the agent (#91). Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> --------- Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Refs #16 (first live run; #16 stays open for the checks listed at the end).
What the live run found
Read-only requests against a test account with 5 Droplets, 2 of them with the metrics agent, and no load balancers.
cpuneeds the metrics agent. On the three Droplets withoutmonitoringinfeatures,cpureturned no series, as did every memory and load path. DigitalOcean's features page lists CPU among the default metrics, but that is the control panel graph, not the API. Bandwidth returned data on all five Droplets.cpuis cumulative. On the two Droplets with the agent, none of the eightmodeseries (idle, iowait, irq, nice, softirq, steal, system, user) decreased over an hour. That confirms the conversion the catalog already uses. Bandwidth values rise and fall, so they are rates."id": "Unauthorized".ratelimit-limitis 5000, andratelimit-resetis a Unix time in seconds.per_page=200is accepted.Changes
lib/DigitalOceanCatalog.php:do_cpu_pctis now an agent metric, so the agent-free default set is the four bandwidth series. CPU stays in the catalog and templates for Droplets that have the agent.tests/Unit/DigitalOceanDriverTest.php: the default set and the estimate (four requests per Droplet) follow.docs/research/provider-facts.md: DO3, DO7, DO8, DO9 (corrected), DO11, DO12, DO13 and DO14 carry the live results, and the live checks section says what ran.docs/research/metric-catalogs.md,docs/research/cost-model.md,docs/PLAN.md: the five-series figures become four, and the capacity figures follow (52 Droplets at the default share, 104 at 100 percent).Verification
docs/PLAN.mdedits are on other lines.Still open on #16