# Installed as /etc/prometheus/overdeck-kubernetes-scrape.yml by apply.sh.
# All targets are loopback tunnels. The generated file_sd labels contain only stable
# cluster/node dimensions; build keys and session identifiers are deliberately absent.
scrape_configs:
  - job_name: kube-state-metrics
    scrape_interval: 30s
    static_configs:
      - targets: ["127.0.0.1:18080"]
        labels: {cluster: "k3s"}
  - job_name: cadvisor
    scrape_interval: 30s
    scheme: http
    file_sd_configs:
      - files: ["/etc/prometheus/file_sd/overdeck-cadvisor.json"]
        refresh_interval: 1m
