Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User would like the supervisor API to report CPU load and temperature #1710

Open
pdcastro opened this issue May 13, 2021 · 7 comments
Open
Assignees

Comments

@pdcastro
Copy link

I would like to know if there is a way to know the CPU consumption and the temperature of the robot in a given time. Maybe a curl request to the supervisor or any similar mean.
By the temperature of the robot, we mean indeed the temperature of the CPU. [...] I was thinking about something similar to the interactions with the supervisor as found in here
https://www.balena.io/docs/reference/supervisor/supervisor-api/#get-v2statestatus

@jellyfish-bot
Copy link

[pdcastro] This issue has attached support thread https://jel.ly.fish/017f5c97-2f26-43b1-9328-c44b6294ca50

@20k-ultra
Copy link
Contributor

I mentioned creating a /device/metrics endpoint in our spec for improving the API https://github.com/balena-io/balena-io/pull/2377

Seems like a good ask.

@cywang117
Copy link
Contributor

The spec balena-io/balena-io#2377 is private and is being worked on, but in essence it relates to making sure Supervisor has a full-featured, consistent set of v2 API endpoints. Since the demand is there, I think it's a good idea to add a GET /v2/device/metrics which returns device metrics & checks in the same format as reported to the cloud in the current state when queried.

@ngelotte
Copy link

It would be super helpful for me as well to be able to get this info using the supervisor api. Is there any update on how this is progressing?

@cywang117
Copy link
Contributor

Hi @ngelotte, I'm hoping to get started on API internal refactoring soon and adding this endpoint will be part of that. Provided that something urgent doesn't come up, this is high my my list of priorities.

@ngelotte
Copy link

Awesome. Excited to see it when it launches.

@jellyfish-bot
Copy link

[cywang117] This issue has attached support thread https://jel.ly.fish/b6792ffb-e655-47c4-bf84-cc01c441896a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants