global:
  scrape_interval: 5s
  evaluation_interval: 5s

scrape_configs:
  - job_name: "journal"
    metrics_path: "/api/metrics"
    static_configs:
      - targets: ["journal:3000"]

  - job_name: "planner"
    metrics_path: "/metrics"
    static_configs:
      - targets: ["planner:3001"]

  - job_name: "postgres"
    static_configs:
      - targets: ["postgres-exporter:9187"]

  - job_name: "node"
    static_configs:
      - targets: ["node-exporter:9100"]

  - job_name: "cadvisor"
    static_configs:
      - targets: ["cadvisor:8080"]

  - job_name: "caddy"
    static_configs:
      - targets: ["caddy:2019"]

  # BRouter runs on a separate Hetzner Robot host (ullrich.is), reached
  # over the vSwitch at 10.0.1.10. cAdvisor there is scoped to trails-
  # labeled containers only — we don't collect metrics for any of the
  # operator's other workloads on that shared host.
  - job_name: "brouter-cadvisor"
    static_configs:
      - targets: ["10.0.1.10:8080"]
        labels:
          host: "brouter"
