Skip to content

Docker Compose setup for a monitoring stack including Prometheus, Grafana, and Alertmanager

Notifications You must be signed in to change notification settings

jaycynth/monitoring-performance-metrics-in-containerized-infrastructure

Repository files navigation

Monitoring Stack: Prometheus, Grafana, and Alertmanager

This repository provides a Docker Compose setup for a monitoring stack including Prometheus, Grafana, and Alertmanager. This stack allows you to monitor and visualize metrics from your applications and infrastructure, and receive alerts based on defined rules.

Prerequisites

Docker Docker Compose

Getting Started

  1. Clone the Repository
  1. Configuration

  • Prometheus Configuration Modify prometheus/prometheus.yml to configure Prometheus scrape targets and alerting rules.

  • Alertmanager Configuration Modify alertmanager/config.yml to configure Alertmanager routing and receivers. It uses environment variables for sensitive data.

  1. Build and Start the Stack Use the provided Makefile to build and start the containers:
  • make build # Build Docker images
  • make up # Start the containers
  1. Access the Services
  1. Configure Grafana
  • Add Data Source: Configure Prometheus as a data source.
  • Import Dashboards: You can use predefined dashboards or create custom ones.
  1. Viewing Logs To view logs from the containers, use:
  • make logs
  • make logs-prometheus
  1. Stopping and Cleaning Up To stop the containers:
  • make down To clean up unused Docker resources:
  • make clean

Alerting

Configure alerting rules in prometheus/alert.rules.yml and set up routing in alertmanager/config.yml. Alerts can be sent via email or other notification systems supported by Alertmanager.

About

Docker Compose setup for a monitoring stack including Prometheus, Grafana, and Alertmanager

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published