# Prometheus scrape configuration.
#
# Run Prometheus pointed at this config to collect metrics from the
# FastAPI app's /metrics endpoint (see app/middleware/metrics.py).
#
# docker run -d -p 9091:9090 \
#   -v $(pwd)/monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml \
#   prom/prometheus

global:
  scrape_interval: 15s
  evaluation_interval: 15s

scrape_configs:
  - job_name: "crop-ai-api"
    static_configs:
      - targets: ["localhost:9090"]
    metrics_path: /metrics

  - job_name: "node-exporter"
    # Optional — install node_exporter on the VPS for OS-level metrics
    # (CPU, memory, disk) alongside application metrics.
    static_configs:
      - targets: ["localhost:9100"]
