# 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 one-click observability for their Swarm nodes via Portainer. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5793/swarm-monitoring

## Description

Swarm Monitoring is a Docker Swarm template that deploys a turnkey Prometheus, Grafana, and Node Exporter stack to monitor cluster health, giving homelabbers one-click observability for their Swarm nodes via Portainer.

## Platform availability

Available on 0 of 6 install platforms.

## Health score

5/100 (Low), based on 3 of 4 factors.
- Maintained: 0 (last commit 1968 days ago)
- Popular: 10 (2 GitHub stars)
- Easy to install: 10 (0 install platforms, Docker image)

## Links

- GitHub: https://github.com/cjie001/swarm-monitoring
- Docker Hub: https://hub.docker.com/r/portainer/template-swarm-monitoring

## 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.

## Alternatives

- Nicepage: 1st Website Designer breaking limitations of website builders with the freehand positioning.
- RocketCake: RocketCake is a free web editor for creating responsive websites.
- Xara Web Designer: Design visually appealing websites effortlessly with customizable templates, drag-and-drop editing, and SEO-friendly settings, all without…
- template: Template is a starter tool used to build new applications quickly.

---
Source: Our Local Host (https://ourlocalhost.com/app/5793/swarm-monitoring), the self-hosted and open-source app directory.
