Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Can I get metrics like CPU usage ,network traffic,the state of container:running or stopped? #9

Open
isabelnoronha61 opened this issue Jun 25, 2020 · 1 comment

Comments

@isabelnoronha61
Copy link

isabelnoronha61 commented Jun 25, 2020

I am runing a docker service which has nearly 2K containers for simulation purpose and I would like to monitor if the container stops and restarts inside the service or send an alert if container has stopped..

@isabelnoronha61 isabelnoronha61 changed the title Can I get metrics like CPU usage ,network traffic,the state of container.:running or stopped? Can I get metrics like CPU usage ,network traffic,the state of container:running or stopped? Jun 25, 2020
@sandersaares
Copy link
Member

sandersaares commented Jun 28, 2020

Yes, the exporter exposes all the metrics you listed in your question.

However, the exporter is not really optimized for situations involving 2000 containers. The Docker APIs it uses are quite low-performance and exhibit lots of latency and high "loading times". I estimate your experience with 2000 container scenarios would not be satisfactory.

In theory, there are some adjustments that can be made to make the exporter more suitable for this scenario but at the moment they are not on the roadmap (though if sufficiently important to you, perhaps sponsoring feature development on this could be considered).

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

No branches or pull requests

2 participants