# Replace the API host and canonical project path with values from Integrations.
# Mount a monitoring.read credential at this path; readable by Prometheus only.
scrape_configs:
  - job_name: metalhost
    scrape_interval: 60s
    scrape_timeout: 10s
    honor_timestamps: true
    scheme: https
    authorization:
      type: Bearer
      credentials_file: /etc/prometheus/secrets/metalhost-key
    http_sd_configs:
      - url: https://API_HOST/v1/monitoring/projects/PROJECT_ID/scrape-targets
        refresh_interval: 60s
        authorization:
          type: Bearer
          credentials_file: /etc/prometheus/secrets/metalhost-key
