mohsenasm / swarm-dashboard

A Simple Monitoring Dashboard for Docker Swarm Cluster
MIT License
154 stars 25 forks source link

Network Section is too big #43

Closed schenklklopfer closed 1 day ago

schenklklopfer commented 4 days ago

Hello,

I am currently deploying massively Stacks to my new cluster. Each stack brings its networks and the network section on the swarm-dashboard gets too big. Just have a look on this screenshot. grafik

Currently I have deployed about 30% of all my stacks. If I am done I am afraid I cannot see any containers anymore.

Is there a option to completely disable the network section, or to collapse it? Or maybe get a fixed width with a scroll bar?

mohsenasm commented 4 days ago

Hi, Currently, there is no option to disable the network section. We can add it in the future.

As a quick workaround, you can fork the repo and add this line in the index.html (at the end of the <head> tag).

<style>.networks { display: none; }</style>
schenklklopfer commented 2 days ago

Thanks! It works with a mount at the moment.

But it'd be great if you merge my PR for this :)

mohsenasm commented 2 days ago

Thanks for the PR 🙏🏻, but I think adding this option to the server is better. So that we can prevent sending the network section (which is big in this case) and save the processing time too. Also, I noticed that display: none; removes the left border of the table.

I have added this option with ENABLE_NETWORKS (not ENABLE_NETWORK) in the master branch and the mohsenasm/swarm-dashboard:master docker image.

schenklklopfer commented 1 day ago

Yes of course! Data that is not needed should not be processed.

Thanks for your work!

schenklklopfer commented 1 day ago

I have cloned your changes to our GitLab, built the Image and tried it - I can confirm it works. Also the left border of the table is not removed now.

Thank you very much!