# Prometheus config
# Scrapes OTel collector self-metrics and runner metrics endpoint.
# Backend metrics come in via OTel remote-write — no direct scrape needed.

global:
  scrape_interval: 15s
  evaluation_interval: 15s
  external_labels:
    environment: production

scrape_configs:
  # OTel Collector self-metrics
  - job_name: otel-collector
    static_configs:
      - targets: ["otel-collector:8888"]

  # Runner JSON metrics endpoint (native format, no Prometheus client yet)
  # Will be replaced by OTLP once runner is instrumented with OTel SDK.
  - job_name: libnovel-runner
    metrics_path: /metrics
    static_configs:
      - targets: ["runner:9091"]
