Swarm Monitoring
Swarm Monitoring is a Docker Swarm template that deploys a turnkey Prometheus, Grafana, and Node Exporter stack to monitor cluster health, giving homelabbers…
Platform availability
Available on 0 of 10 platforms
- Unraid (not listed)
- TrueNAS (not listed)
- Umbrel (not listed)
- ZimaOS (not listed)
- Proxmox (not listed)
- Helm (not listed)
- Mac (not listed)
- Windows (not listed)
- Linux (not listed)
- Any server (not listed)
Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.
9/100 Low
- Maintained
- 0last commit 2013 days ago
- Popular
- 102 GitHub stars
- Easy to install
- 250 install platforms, install notes, Docker image
- Light to run
- No data
Based on 3 of 4 factors.
- GitHub stars
- 2
- Open issues
- 0
- Last commit
- 2021-05-21
- Activity
- stale
Checked 6 days ago - source: GitHub (cjie001/swarm-monitoring)
Resources & Compatibility
ARM (e.g. Raspberry Pi) is supported.
Checked 57 days ago - source: Docker Hub image tags and published docs
First-install notes
- Start the support bot in the right order First make sure Docker (a tool that runs app containers) is installed and running, then in the support bot folder run these setup commands in order: make install, docker-compose up -d, make prep, and make run. If you skip a step, the bot may fail because its needed files, containers, or memory/search data aren't ready. source
- Use Python 3.10 or newer If you run the examples directly, install Python 3.10 or newer and use the SSH or HTTPS pip (Python package installer) command shown to install Swarm. Without the right Python version and installation, the examples won't start. source
- Run example scripts from their folder For an example, open its folder and run python3 <example_name>.py after installing the needed packages and Swarm. If you run it from the wrong folder, Python may not find the files it needs. source
- Install the Swarm monitoring stack Clone the swarm-monitoring repository, then start the stack with environment variables set first: ADMIN_USER and ADMIN_PASSWORD for your admin account, HASHED_PASSWORD (generate it with 'openssl passwd -apr1' against your admin password), and DOMAIN set to your own domain, before running the provided commands to bring the stack up. source
- Install Clone the swarm-monitoring repo, set ADMIN_USER, ADMIN_PASSWORD, and DOMAIN environment variables, then deploy with docker stack deploy --compose-file docker-stack.yml swarm-monitoring source
Fetched 5 days ago - each note links to its source
Variants
Alternatives
No alternatives collected yet.
Common questions
How do I deploy the monitoring stack?
Clone the repository, export ADMIN_USER, ADMIN_PASSWORD, HASHED_PASSWORD, and DOMAIN, then run docker stack deploy with docker-compose.yml. HASHED_PASSWORD is generated from ADMIN_PASSWORD using openssl passwd -apr1.
Which DNS subdomains must point to the Swarm cluster?
Create the grafana., alertmanager., karma., and prometheus. subdomains from the DOMAIN value and point them to your Docker Swarm cluster IPs.
What Docker engine configuration is required for metrics?
Enable Docker engine experimental and set the metrics address to 0.0.0.0:9323.
Which ports are exposed by the main services?
Prometheus is on 9090, Grafana is on 3000, Alertmanager is on 9093, and Karma is on 9094. node-exporter and cAdvisor run as collectors in the stack.
Is there a known issue with only one node being monitored?
A Docker community report describes a two-node Raspberry Pi Swarm where monitoring only showed one node after setting up Prometheus and Grafana with Portainer app templates.
Answers sourced from forums.docker.com, github.com
Community
- Monitoring a Swarm Cluster with Prometheus and Grafana. Learn ... - Reddit (reddit)
- Monster Templates (most notably, Swarms) : r/DnDHomebrew - Reddit (reddit)
- Swarm monitoring only monitoring one of two nodes - Docker Community Forums (forum)
Collected 51 days ago - public community threads