Skip to content

Monitor docker Swarm services and sends a pushover notification if anyone is down

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.996ICU
MIT
LICENSE.MIT
Notifications You must be signed in to change notification settings

gpulido/SwarmAlert

Repository files navigation

Docker

Introduction

The SwarmAlert app monitors the availability of services running in a Docker Swarm. It currently monitors only those services specified in the WHITE_LIST ENV variable, if not defined, all services are monitored. If a specified service has no running task, the app generates a Pushover Notification using the specified user Token, Api Key, and MSG_PREFIX.

Note: This project is based on monitor-docker-slack

General Idea

  1. Start one or more services in Docker Swarm mode.
  2. Use this service to monitor the availability of services.
  3. Send a pushover notifications containeing the unavailable services.

How To Use: Docker-compose

version: '3'
services:
  swarm-alert:
    image: gpulidodt/swarm-alert:latest
    volumes:
     - /var/run/docker.sock:/var/run/docker.sock
    environment:
     - PUSHOVER_USER_KEY: "user_key_from_pushover"
     - PUSHOVER_API_TOKEN: "your_app_token_from_pushover"
     - MSG_PREFIX: "$MSG_PREFIX"
     - WHITE_LIST="traefik_traefik,plex_plex,etc."
     - BLACK_LIST="shepherd_shepherd"
     - LOGGING_LEVEL = INFO | DEBUG

Further customization

  • Customize the message prefix for the Pushover Notification via the MSG_PREFIG variable:
 - MSG_PREFIX="Swarm services"
  • If defined, the services that are monitored are those on the WHITE_LISTE_LIST variable:
 - WHITE_LIST="nodeexporter,ngin.*"
  • If defined, the services defined on the BLACK_LIST are excluded from monitoring:
 - BLACK_LIST="nodeexporter,ngin.*"
  • Logging capabilities are included, it is set as INFO level by default, can be increased to DEBUG using the LOGGIN_LEVEL env variable.

Code is licensed under MIT license

About

Monitor docker Swarm services and sends a pushover notification if anyone is down

Topics

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.996ICU
MIT
LICENSE.MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published