Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stefanscherer/swarm-monitor

Monitor a Docker Swarm with Blinkt! LED
https://github.com/stefanscherer/swarm-monitor

arm blinkt docker docker-swarm monitor raspberry-pi

Last synced: about 5 hours ago
JSON representation

Monitor a Docker Swarm with Blinkt! LED

Awesome Lists containing this project

README

        

# Docker Swarm Monitor
[![Build Status](https://travis-ci.org/StefanScherer/swarm-monitor.svg?branch=master)](https://travis-ci.org/StefanScherer/swarm-monitor)
[![This image on DockerHub](https://img.shields.io/docker/pulls/stefanscherer/monitor.svg)](https://hub.docker.com/r/stefanscherer/monitor/)

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

```bash
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](images/scale-up.gif)

Run a rolling update

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

![scale up](images/rolling-update.gif)

Scale down

```
docker service scale whoami=1
```

![scale up](images/scale-down-to-one.gif)