Exploring Swarm & Container Overview Dashboard in Grafana by@mlabouardy

Exploring Swarm & Container Overview Dashboard in Grafana

image
Mohamed Labouardy HackerNoon profile picture

Mohamed Labouardy

image

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:

image

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

image

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.

image

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

image

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

image

You will end up with an interactive and dynamic dashboard:

image

react to story with heart
react to story with light
react to story with boat
react to story with money
L O A D I N G
. . . comments & more!