Giter Club home page Giter Club logo

docker-network-latency-plotter's Introduction

docker-network-latency-plotter

a docker network latency plotter coded which is a part of the bundle docker swarm management and this subpart will check and plot all the docker network latency and also prune them if they are sleeping or are dead. this is the subpart of the docker swarm and management bundle which i already finished coding and pushing in a short while. A snippet of which is here if you want to use it separately. if will show you visual graphs for each of the container that is on the network including the bridge and the local ones. A bigger bundle you can find at docker_management which is in release.

I finished almost implementing this sub module into a graphical interface and it looks like graphical interface and you can search the profile with the regular expression and it will explicit look into the network id. Have a look here profile and i am integrating this with the streamer library from here for seamless integration into python pyobject and GTK for the linux kernel gtk

when you will press ok, all the options will appear, so a quick launch.

if [[ $ip_address ]]
   then 
        ping "$ip_address" > "${ip_address}".log && cat "${ip_address}".log | \
                           cut -f 7 -d " " | cut -f 2 -d "=" | uplot bar -d, -t "time latency"
   else 
   for i in $(docker network ls | cut -f 1 -d " " | sed "/NETWORK/d") \
         do echo ping "$i" > "${i}".log && cat "${i}".log | cut -f 7 -d " " | \
                                             cut -f 2 -d "=" | uplot bar -d, -t "timelatency" 
   done
   fi
fi 
if [[ $network == "yes" ]] && 
        [[ $option == "yes" ]]
then 
     for i in $(docker network ls | cut -f 1 -d " " | sed "/NETWORK/d")
         do 
            echo ping "$i" > "${i}".log && cat "${i}".log
        done
            for file in $(pwd)/*.log
            do 
                if [[ -f $file ]] &&
                        [[ -z $file ]]
                then
                    docker network prune -y
# entire code there this is just a part

Gaurav
Academic Staff Member
Bioinformatics
Institute for Biochemistry and Biology
University of Potsdam
Potsdam,Germany

docker-network-latency-plotter's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.