Hackernoon logoExploring Swarm & Container Overview Dashboard in Grafana by@mlabouardy

Exploring Swarm & Container Overview Dashboard in Grafana

Mohamed Labouardy Hacker Noon profile picture

@mlabouardyMohamed Labouardy

DevOps Engineer

In my previous post, you learnt how to monitor your Swarm Cluster with TICK Stack. In this part, I will show you how to use the same Stack but instead of using Chronograf as our visualization and exploration tool we will use Grafana.

Connect to your manager node via SSH, and clone the following Github repository:

git clone https://github.com/mlabouardy/swarm-tig.git

Use the docker-compose.yml below to setup the monitoring stack:

Then, issue the following command to deploy the stack:

docker stack deploy — compose-file docker-compose.yml tig

Once deployed, you should see the list of services running on the cluster:

Point your browser to http://IP:3000, you should be able to reach the Grafana Dashboard:

The default username & password are admin. Go ahead and log in.

Go to “Data Sources” and create 2 InfluxDB data sources:

  • Vms: pointing to your Cluster Nodes metrics database.
  • Docker: pointing to your Docker Services metrics database.

Finally, import the dashboard by hitting the “import” button:

From here, you can upload the dashboard.json, then pick the data sources you created earlier:

You will end up with an interactive and dynamic dashboard:


Join Hacker Noon

Create your free account to unlock your custom reading experience.