Production Stack (7 services): - buh_bot: Main bot from registry (1 CPU, 1GB RAM) - nginx: Reverse proxy with rate limiting (10 req/s) - prometheus: Metrics collection (30d retention) - grafana: Monitoring dashboards (port 3000) - node_exporter: Host metrics (port 9100) - cadvisor: Container metrics (port 8080) - watchtower: Auto-updates (hourly check) Configuration: - docker-compose.prod.yml with 7-service stack - nginx.conf with SSL-ready config and healthchecks - prometheus.yml with scrape configs - grafana datasource and dashboard provisioning - .env.prod.example template - Custom network 172.20.0.0/16 - Persistent volumes in /var/lib/buh_bot - Log rotation: 50MB x 5 files
12 lines
199 B
YAML
12 lines
199 B
YAML
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: Prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
url: http://prometheus:9090
|
|
isDefault: true
|
|
editable: true
|
|
jsonData:
|
|
timeInterval: "15s"
|