National Forensic Sciences University
School of Cyber Security and Digital Forensics
Subject: CTMSCS SIII P3: Cloud Security and
Forensics
Lab - 5
Submitted to: Dr. Mukti Padhya
Submitted by:
Disha Sharma [240103002014]
Topic: Docker Monitoring and Visualization
using Grafana & Prometheus
Submission Date: 03/10/2025
Assignment 05
Lab Objective: Set up a reliable monitoring solution for your Docker containers using
Prometheus, and Visualize monitoring data with Grafana.
Scope of the lab: The scope of this lab is to provide hands-on experience in setting up a
reliable monitoring solution for Docker containers. In the current containerized ecosystem,
Docker is an essential tool for DevOps teams, but effective monitoring is critical to ensure
performance, availability, and security. This lab will focus on deploying Prometheus, an
open-source toolkit for monitoring and alerting, alongside Grafana for data visualization.
Participants will learn how to configure and integrate these tools to monitor containerized
applications running on Linux environments such as Ubuntu, with the flexibility to extend the
setup to cloud platforms like AWS.
Reference:
[Link]
Create a file named [Link] with the following content
Create a file named [Link] with the following content
Run the following command to start the services
Update your [Link] file to include Grafana
Open a web browser and navigate to [Link]
Log in with the username admin and password admin.
Go to Configuration > Data Sources.
Add a new Prometheus data source.
Set the URL to [Link]
Click Save & Test.
Go to Create > Import.
Enter the dashboard ID (e.g., 893 for Docker and system monitoring).
Select your Prometheus data source.
Click Import.
To monitor the Docker daemon itself, you can use the Docker Engine metrics endpoint.
Add the following to your [Link] configuration file
Next, configure the Docker daemon to expose metrics by editing the
/etc/docker/[Link] file