Prometheus + Grafana monitoring with Node.js sample app.
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ Sample App │────▶│ Prometheus │────▶│ Grafana │ │ :8081 │ │ :9090 │ │ :3001 │ └─────────────┘ └─────────────┘ └─────────────┘ │ ▼ ┌─────────────┐ │ Node Exporter│ │ :9100 │ └─────────────┘
docker compose up -d
📊 Access Points
Table
Service URL Credentials
Grafana http://localhost:3001 admin/admin123
Prometheus http://localhost:9090 -
Sample App http://localhost:8081 -
Node Exporter http://localhost:9100 -
🛠️ Tech Stack
Prometheus: Metrics collection
Grafana: Visualization
Node Exporter: System metrics
Sample App: Node.js with prom-client
📝 Metrics
Sample app exposes:
http_requests_total - Total HTTP requests
Default Node.js metrics