← Back to all products

Monitoring Stack Setup

$49

Complete Prometheus + Grafana + Alertmanager setup with dashboards, alert rules, and service discovery configs.

📁 18 files🏷 v1.0.0
JSONMarkdownShellYAMLConfigDockerGrafanaPrometheus

📄 Product Preview

Try the interactive reader and demo tools below, or get the full product with all content unlocked.

📖 Interactive Reader (Free Preview) ⚙ Try Demo Tools 📦 Download Free Sample

📁 File Structure 18 files

monitoring-stack-setup/ ├── .env.example ├── LICENSE ├── README.md ├── alertmanager/ │ └── alertmanager.yml ├── docker-compose.yml ├── grafana/ │ ├── dashboards/ │ │ ├── application-metrics.json │ │ ├── docker-overview.json │ │ └── node-overview.json │ └── provisioning/ │ ├── dashboards.yaml │ └── datasources.yaml ├── guides/ │ └── monitoring-strategy.md ├── loki/ │ └── loki-config.yml ├── prometheus/ │ ├── alert-rules.yml │ ├── prometheus.yml │ └── recording-rules.yml ├── promtail/ │ └── promtail-config.yml └── scripts/ └── setup.sh

📖 Documentation Preview README excerpt

Monitoring Stack Setup

Complete observability stack with Prometheus, Grafana, Loki, and AlertManager.

One docker compose up to full production monitoring. Stop flying blind.

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

[![Docker](https://img.shields.io/badge/Docker-Compose-blue.svg)](https://docs.docker.com/compose/)

[![Price](https://img.shields.io/badge/Price-$49-orange.svg)](https://datanest.dev)


What You Get

  • Docker Compose stack: Prometheus, Grafana, AlertManager, Loki, Promtail, node-exporter, cAdvisor
  • 30+ alert rules covering infrastructure, containers, and application metrics
  • 3 Grafana dashboards: Node overview, Docker containers, Application metrics
  • Log aggregation with Loki + Promtail (search logs in Grafana)
  • One-command setup script with health checks
  • Monitoring strategy guide: SLI/SLO/SLA, alert fatigue, runbooks

File Tree


monitoring-stack-setup/
├── README.md
├── manifest.json
├── LICENSE
├── docker-compose.yml                          # Full stack definition
├── .env.example                                # Configurable variables
├── prometheus/
│   ├── prometheus.yml                          # Scrape configs + relabeling
│   ├── alert-rules.yml                         # 30+ alert rules
│   └── recording-rules.yml                     # Pre-computed aggregations
├── grafana/
│   ├── provisioning/
│   │   ├── datasources.yaml                    # Prometheus + Loki
│   │   └── dashboards.yaml                     # Dashboard provisioning
│   └── dashboards/
│       ├── node-overview.json                  # CPU, memory, disk, network
│       ├── docker-overview.json                # Container metrics
│       └── application-metrics.json            # Request rate, latency, errors
├── alertmanager/
│   └── alertmanager.yml                        # Routing: PagerDuty, Slack
├── loki/
│   └── loki-config.yml                         # Loki with retention
├── promtail/
│   └── promtail-config.yml                     # Log scraping + labels
├── scripts/
│   └── setup.sh                                # One-command setup
└── guides/
    └── monitoring-strategy.md                  # SLI/SLO, alert fatigue

Getting Started

1. Configure environment


cp .env.example .env

*... continues with setup instructions, usage examples, and more.*

📄 Code Sample .sh preview

scripts/setup.sh#!/usr/bin/env bash # ============================================================================= # Monitoring Stack — One-Command Setup # Datanest Digital — monitoring-stack-setup v1.0.0 # ============================================================================= # This script: # 1. Checks prerequisites (Docker, Docker Compose, disk space) # 2. Creates .env from .env.example if missing # 3. Creates required directories # 4. Starts the full monitoring stack # 5. Waits for all services to be healthy # 6. Prints access URLs # # Usage: ./scripts/setup.sh [--down] [--restart] [--status] # ============================================================================= set -euo pipefail # --- Colors and formatting --------------------------------------------------- RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' BLUE='\033[0;34m' NC='\033[0m' # No Color info() { echo -e "${BLUE}[INFO]${NC} $*"; } success() { echo -e "${GREEN}[OK]${NC} $*"; } warn() { echo -e "${YELLOW}[WARN]${NC} $*"; } error() { echo -e "${RED}[ERROR]${NC} $*" >&2; } # --- Resolve script location (works from any directory) ---------------------- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)" # --- Parse arguments --------------------------------------------------------- ACTION="up" case "${1:-}" in --down|down) ACTION="down" ;;
Buy Now — $49 Back to Products