bcicen / ctop

Top-like interface for container metrics
https://ctop.sh
MIT License
15.56k stars 527 forks source link

Add support for Swarm Mode #46

Open jtyr opened 7 years ago

jtyr commented 7 years ago

It would be nice to monitor containers across all Swarm Mode cluster.

yashpatel5400 commented 7 years ago

Gonna try working on this feature

sah4ez commented 7 years ago

Do you have a developer guides? I can try it.

sah4ez commented 7 years ago

I wrote the output for node, service and task in a docker swarm cluster. But I have interesting question. How I should get Resource usage for tasks and their containers from remove nodes? Did anyone has ideas?

bcicen commented 7 years ago

I don't see a way forward with swarm support that doesn't require a stats forwarder/proxy deployed to each node in the cluster

sah4ez commented 7 years ago

Ok. But may be to add toggle switch to swarm mode, which displayed structure of the swarm cluster, if swarm enabled on this docker and this docker is a manager swarm. By example:

node_1
| +--service_1
|     +---task_1_1 | health_check
|     +---task_1_2 | health_check
| +__service_2
|     +---task_2_1 | health_check
|     +---task_2_2 | health_check
|node_2
 +--service_1
      +---task_1_1 | health_check
purplesrl commented 7 years ago

a way would be to run it as a global service, still a bit complex and a totally new application

sah4ez commented 7 years ago

I implemented swarm mode in ctop in my fork, but me yet need add some optimizations.