Files
orion/monitoring/prometheus.yml
Samir Boulahtit 35d1559162
Some checks failed
CI / ruff (push) Successful in 10s
CI / pytest (push) Failing after 47m30s
CI / validate (push) Successful in 24s
CI / dependency-scanning (push) Successful in 29s
CI / docs (push) Has been skipped
CI / deploy (push) Has been skipped
feat(monitoring): add Redis exporter + Sentry docs to deployment guide
- Add redis-exporter container to docker-compose (oliver006/redis_exporter, 32MB)
- Add Redis scrape target to Prometheus config
- Add 4 Redis alert rules: RedisDown, HighMemory, HighConnections, RejectedConnections
- Document Step 19b (Sentry Error Tracking) in Hetzner deployment guide
- Document Step 19c (Redis Monitoring) in Hetzner deployment guide
- Update resource budget and port reference tables

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 23:30:18 +01:00

61 lines
1.8 KiB
YAML

# Prometheus configuration for Orion platform
# Docs: https://prometheus.io/docs/prometheus/latest/configuration/configuration/
global:
scrape_interval: 15s
evaluation_interval: 15s
# ─── Alerting ────────────────────────────────────────────────────────────
alerting:
alertmanagers:
- static_configs:
- targets: ["alertmanager:9093"]
rule_files:
- /etc/prometheus/alert.rules.yml
# ─── Scrape Configs ─────────────────────────────────────────────────────
scrape_configs:
# Orion API — /metrics endpoint (prometheus_client)
- job_name: "orion-api"
metrics_path: /metrics
static_configs:
- targets: ["api:8000"]
labels:
service: "orion-api"
# Node Exporter — host-level CPU, RAM, disk metrics
- job_name: "node-exporter"
static_configs:
- targets: ["node-exporter:9100"]
labels:
service: "node-exporter"
# cAdvisor — per-container resource metrics
- job_name: "cadvisor"
static_configs:
- targets: ["cadvisor:8080"]
labels:
service: "cadvisor"
# Prometheus self-monitoring
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
labels:
service: "prometheus"
# Redis Exporter — Redis memory, connections, command stats
- job_name: "redis"
static_configs:
- targets: ["redis-exporter:9121"]
labels:
service: "redis"
# Alertmanager
- job_name: "alertmanager"
static_configs:
- targets: ["alertmanager:9093"]
labels:
service: "alertmanager"