← Back to all products
$49
Monitoring Stack Setup
Complete Prometheus + Grafana + Alertmanager setup with dashboards, alert rules, and service discovery configs.
ShellYAMLMarkdownJSONConfigDockerGrafanaPrometheus
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 SampleFile 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)
[](https://docs.docker.com/compose/)
[](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 .yml preview
alertmanager/alertmanager.yml
# =============================================================================
# AlertManager Configuration
# Datanest Digital — monitoring-stack-setup v1.0.0
# =============================================================================
# Routing tree:
# - Critical alerts → PagerDuty (immediate page)
# - Warning alerts → Slack (channel notification)
# - Info alerts → Slack (low-priority channel)
#
# Customize webhook URLs and routing keys in .env, then reference here.
# =============================================================================
global:
# How long to wait before sending a notification again for the same alert
resolve_timeout: 5m
# SMTP settings for email notifications (optional)
# smtp_smarthost: 'smtp.example.com:587'
# smtp_from: '[email protected]'
# smtp_auth_username: '[email protected]'
# smtp_auth_password: 'your-smtp-password'
# smtp_require_tls: true
# Slack API URL (set via environment or replace directly)
slack_api_url: 'https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK'
# PagerDuty integration URL
pagerduty_url: 'https://events.pagerduty.com/v2/enqueue'
# =============================================================================
# Route tree — determines how alerts are grouped and where they go
# =============================================================================
route:
# Group alerts by these labels before sending
group_by: ['alertname', 'severity', 'job']
# How long to wait for additional alerts before sending the first notification
group_wait: 30s
# How long to wait before sending updates for a group
group_interval: 5m
# How long to wait before re-sending a notification for the same alert
repeat_interval: 4h
# Default receiver if no child route matches
receiver: 'slack-warnings'
# Child routes — evaluated top to bottom, first match wins
routes:
# ... 150 more lines ...