Giter Club home page Giter Club logo

swarm-monitor's Introduction

Docker Swarm Monitor

Build Status This image on DockerHub

The Docker Swarm Monitor shows running containers (eg. replicas of a swarm service) with the Blinkt! LED strip.

docker run -v /sys:/sys -v /var/run/docker.sock:/var/run/docker.sock monitor

Swarm Mode Demo

docker service create --name monitor \
--mode global --restart-condition any --mount type=bind,src=/sys,dst=/sys --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
stefanscherer/monitor:1.1.0

Create a service

docker service create --name whoami stefanscherer/whoami:1.1.0

Scale service up and down

docker service scale whoami=4
docker service scale whoami=16
docker service scale whoami=32

scale up

Run a rolling update

docker service update --image stefanscherer/whoami:1.2.0 \
  --update-parallelism 4  --update-delay 2s whoami

scale up

Scale down

docker service scale whoami=1

scale up

swarm-monitor's People

Contributors

stefanscherer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

swarm-monitor's Issues

User rights

Hi @StefanScherer,

I would like to to use your monitor to visualize my kubernetes apps.
My first step is to get your version working.

When I spin up your docker image, I can see in the logging the apps passing by, but the led's are not triggered.

How did you solve the user rights so the container has the rights to access the GPIO ?

Thx,
Peter

Using Monitor For Apps Other Than Whoami

Sorry for writing this as an issue, because its not and it works fine for my setup.
...But only for whoami containers.

Could you give us some rough instructions on how to adapt this for other containers please?

Would it just entail pulling to a private registry and modifying app.js so it points to said app instead of whoami?

What if we want to point to several apps, each with a different colour, is this possible?

Many thanks for the hard work and i look forward to your reply.
@StefanScherer

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.