feat(clients): live sandbox resource metrics#24
Closed
MDzaja wants to merge 1 commit into
Closed
Conversation
There was a problem hiding this comment.
5 issues found across 46 files
Tip: instead of fixing issues one by one fix them all with cubic
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
b5199d4 to
1944003
Compare
Signed-off-by: MDzaja <mirkodzaja0@gmail.com>
1944003 to
938231b
Compare
Collaborator
Author
|
closed in favour of #28 |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Original monorepo PR: daytonaio/daytona#5114
Summary
Client-side counterpart of live sandbox resource metrics: SDK methods to read CPU/memory/disk
metrics across the SDKs, plus regenerated toolbox clients and the toolbox spec.
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by cubic
Adds live sandbox resource metrics to all SDKs. Introduces
Sandbox.getMetrics()to fetch CPU, memory, and disk usage via the toolbox/system/metricsendpoint; snapshots refresh every ~60s by default and are configurable viaOTEL_METRIC_EXPORT_INTERVAL./system/metricsreturningSystemMetrics(cpuCount, cpuUsedPct, memTotal/memUsed, memCache, diskTotal/diskUsed/diskFree, timestamp/timestampUnix).getMetricsto Sandbox in Go, Java, Python (sync/async), Ruby, and TypeScript; docs include examples and the sampling interval env var.toolbox-api-client-go,toolbox-api-client-java,toolbox-api-client-python,toolbox-api-client-python-async,toolbox-api-client-ruby,@daytona/toolbox-api-client) to includeSystemApiandSystemMetrics.Written for commit 938231b. Summary will update on new commits.