ctop icon indicating copy to clipboard operation
ctop copied to clipboard

Add support for Swarm Mode

Open jtyr opened this issue 7 years ago • 7 comments

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

jtyr avatar Mar 15 '17 18:03 jtyr

Gonna try working on this feature

yashpatel5400 avatar Mar 23 '17 03:03 yashpatel5400

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

sah4ez avatar Aug 22 '17 06:08 sah4ez

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?

sah4ez avatar Aug 27 '17 19:08 sah4ez

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

bcicen avatar Aug 28 '17 01:08 bcicen

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

sah4ez avatar Aug 28 '17 05:08 sah4ez

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

purplesrl avatar Oct 22 '17 16:10 purplesrl

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

sah4ez avatar Oct 23 '17 06:10 sah4ez