paint-brush
Exploring Swarm & Container Overview Dashboard in Grafanaby@mlabouardy
3,898 reads
3,898 reads

Exploring Swarm & Container Overview Dashboard in Grafana

by Mohamed LabouardyNovember 11th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In my previous post, you learnt how to monitor your <strong>Swarm Cluster </strong>with <a href="https://hackernoon.com/monitor-swarm-cluster-with-tick-stack-slack-3aaa6483d44a?source=user_profile---------8----------------" target="_blank"><strong>TICK Stack</strong></a>. In this part, I will show you how to use the same Stack but instead of using <strong>Chronograf</strong> as our visualization and exploration tool we will use <strong>Grafana</strong>.

Company Mentioned

Mention Thumbnail
featured image - Exploring Swarm & Container Overview Dashboard in Grafana
Mohamed Labouardy HackerNoon profile picture

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: