- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Feature: Add nanocl stats
command to support multiple process monitoring
#1144
Comments
@leon3s |
Hey, i think that would be pretty overkill and i want to keep things docker like for the commands and the output, so seasoned docker user can jump in nanocl pretty easily. If you want to use ratatui you can create your own binary to view thing in a better way a bit like: https://github.com/mrjackwills/oxker I'll be happy to advertise it if you do |
@leon3s Hey, Sorry for the late response. I am going for building similar to what you have done with |
Wdym by getting stuck ? You don't receive data? |
By getting stuck, I mean it's literally blocking the current thread on when I await for receiver from |
Does it do it when you run the cargo stats command? |
yup, |
You do it with the development env right? |
I don't have this problem on my machine and on different servers.. |
Ok, Tested on the latest nightly build, the issue persist. Here is the video |
Only the name of the cargo is required, error handling is missing for incorrect naming i guess.. nanocl cargo -n system stats ndaemon |
To be able to do the issue you need to create a new route on the api similar to this one: |
oh, that makes sense. Thank you for your insight. I will use that approach. |
Is your feature request related to a problem? Please describe.
Currently, there is no
nanocl stats
command available, making it difficult for developers to monitor resource usage (e.g., CPU, memory) of processes managed by Nanocl. This can be a significant gap for those who need real-time insight into the performance and resource consumption of multiple processes.Describe the solution you'd like
Implement a
nanocl stats
command that can display real-time resource usage for specified processes. This command should accept multiple process names as arguments, allowing usage such asnanocl stats my-process my-second-process
, with combined resource statistics output for all specified processes.Describe alternatives you've considered
top
orhtop
, which lacks process-specific integration within Nanocl.Additional context
Adding a
nanocl stats
command would greatly enhance the ability to monitor and manage the performance of services within the Nanocl ecosystem. This feature would provide a streamlined way for developers to get real-time metrics on multiple processes, supporting better optimization and troubleshooting efforts.The text was updated successfully, but these errors were encountered: