Lab 11: Prometheus — Metrics & Alerting
Overview
Architecture
┌─────────────────────────────────────────────────────────────┐
│ Prometheus Architecture │
│ │
│ ┌──────────────┐ scrape ┌─────────────────────────┐ │
│ │ node_exporter│◄─────────────│ Prometheus Server │ │
│ │ :9100/metrics│ │ ┌──────────────────┐ │ │
│ └──────────────┘ │ │ TSDB (chunks) │ │ │
│ │ │ /prometheus │ │ │
│ ┌──────────────┐ scrape │ └──────────────────┘ │ │
│ │ app_exporter │◄────────────│ ┌──────────────────┐ │ │
│ │ :8080/metrics│ │ │ PromQL Engine │ │ │
│ └──────────────┘ │ └──────────────────┘ │ │
│ └─────────────┬───────────┘ │
│ ┌──────────────────────────────────────────▼───────────┐ │
│ │ Alertmanager :9093 │ │
│ │ routes → email / slack / pagerduty / webhook │ │
│ └──────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘Step 1: Install Prometheus Binary
Step 2: Install node_exporter
Step 3: Write prometheus.yml Configuration
Step 4: PromQL Query Reference
Step 5: Define Recording Rules
Step 6: Define Alert Rules
Step 7: Configure Alertmanager
Step 8: Capstone — Production Monitoring Rollout
Summary
Concept
Key Details
Last updated
