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

Docker stats aggregated on project #12321

Open
feyst opened this issue Nov 25, 2024 · 3 comments
Open

Docker stats aggregated on project #12321

feyst opened this issue Nov 25, 2024 · 3 comments
Assignees

Comments

@feyst
Copy link

feyst commented Nov 25, 2024

Description

We currently have several ways to get the CPU and memory consumption for containers. We have docker stats that tells the resource usage per container. There is the docker compose stats that tells the resource usage in a particular project but there is no real way to get the resource usage per composer project. I also don't know what the command should be called but it would show a list of compose projects similar to docker compose ls but then show the same metrics as docker stats and docker compose stats but then aggregated per project.

@glours
Copy link
Contributor

glours commented Nov 25, 2024

Hello @feyst
Using the -p flag to specify the project name like docker compose -p your-project stats should do the job, no?
Or do you what to display all resources consumption for all projects at once?

@glours glours self-assigned this Nov 25, 2024
@feyst
Copy link
Author

feyst commented Nov 25, 2024

Hello @feyst Using the -p flag to specify the project name like docker compose -p your-project stats should do the job, no? Or do you what to display all resources consumption for all projects at once?

Thanks for your quick reply.
The -p allows you to see the stats of a single project and not aggregated. I would like to see the stats of all projects but aggregated by project. For example If I had 2 projects with 3 containers each I would get 2 lines, one for each project stating the resources that project uses combined over all containers.

@ndeloof
Copy link
Contributor

ndeloof commented Nov 25, 2024

The sole "cross project" command we support for now is docker compose ls
I wonder how we could tweak the stats command UX to support this need.

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

No branches or pull requests

3 participants