Skip to content

In this guide, you'll learn about the Docker Monitoring Stack with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager A comprehensive monitoring solution for Docker hosts and containers, utilizing Prometheus, Grafana, cAdvisor, NodeExporter, and AlertManager for alerting.

Notifications You must be signed in to change notification settings

Divya4242/PAGNCstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PAGNCstack

Docker Monitoring Stack with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager

A comprehensive monitoring solution for Docker hosts and containers, utilizing Prometheus, Grafana, cAdvisor, NodeExporter, and AlertManager for alerting.

Install

Clone this repository on your Docker host, navigate to the directory, and run the compose command:

git clone https://github.com/Divya4242/PAGNCstack.git
cd PAGNCstack

Prerequisites

• Docker Engine >= 1.13

• Docker Compose >= 1.11

Services and Port Information

  • Prometheus: It is an open-source systems monitoring and alerting toolkit. It collects and stores metrics as time series data. Port: 9090

  • Grafana: It is an open-source platform for monitoring and observability. It provides dashboards and visualizations for your data. Port: 3000

  • cAdvisor (Container Advisor): It provides container users an understanding of the resource usage and performance characteristics of their running containers. Port: 8085

  • AlertManager: Handles alerts sent by client applications such as Prometheus. It manages alerts, including silencing, inhibition, aggregation, and sending out notifications. Port: 9093

  • NodeExporter exposes hardware and OS metrics exposed by *nix kernels, which Prometheus can scrape. Port: 9100

Setup AlertManager

Follow the steps in the alertmanager folder's README.md file before running Docker Compose.

Run Docker Compose

docker-compose -f docker-compose.yml up -d

Setup Grafana

image

  1. Ensure all targets are up as shown in the image above.

image

  1. Go to Grafana and add the Prometheus data source:

    • Add the Prometheus server URL in the connection settings as shown in the image above.

    • Click the "Save & Test" button at the bottom of grafana page.

image

  1. Once the data source is successfully added, import the dashboard:

    • Go to Dashboards -> Import -> Import via Dashboard JSON.

    • Paste the contents of dashboard.json from the Grafana folder in this repository.

Dashboard Photos

image

image

image

By following these steps, you can set up a robust monitoring stack for your Docker environments, providing insights and alerts to keep your services running smoothly.

About

In this guide, you'll learn about the Docker Monitoring Stack with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager A comprehensive monitoring solution for Docker hosts and containers, utilizing Prometheus, Grafana, cAdvisor, NodeExporter, and AlertManager for alerting.

Topics

Resources

Stars

Watchers

Forks