global:
  scrape_interval: __SCRAPE_INTERVAL__
  evaluation_interval: __EVALUATION_INTERVAL__

rule_files:
  - /etc/prometheus/rules.yml

alerting:
  alertmanagers:
    - static_configs:
        - targets:
            - alertmanager:9093

scrape_configs:
  - job_name: who-need-help-web
    metrics_path: /metrics
    authorization:
      type: Bearer
      credentials_file: /runtime/metrics-token
    http_headers:
      X-Forwarded-Proto:
        values:
          - https
    file_sd_configs:
      - files:
          - /runtime/web-targets.json
        refresh_interval: __SCRAPE_INTERVAL__

  - job_name: who-need-help-worker
    metrics_path: /metrics
    authorization:
      type: Bearer
      credentials_file: /runtime/metrics-token
    file_sd_configs:
      - files:
          - /runtime/worker-targets.json
        refresh_interval: __SCRAPE_INTERVAL__
