Files
orion/monitoring/prometheus.yml
Samir Boulahtit ef7187b508
Some checks failed
CI / dependency-scanning (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / ruff (push) Successful in 7s
CI / validate (push) Has been cancelled
CI / deploy (push) Has been cancelled
CI / pytest (push) Has started running
feat: add automated backups and Prometheus/Grafana monitoring stack (Steps 17-18)
Backups: pg_dump scripts with daily/weekly rotation and Cloudflare R2 offsite sync.
Monitoring: Prometheus, Grafana, node-exporter, cAdvisor in docker-compose; /metrics
endpoint activated via prometheus_client.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 22:40:08 +01:00

37 lines
946 B
YAML

# Prometheus configuration for Orion platform
# Docs: https://prometheus.io/docs/prometheus/latest/configuration/configuration/
global:
scrape_interval: 15s
evaluation_interval: 15s
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"