# prometheus.yml — scrape config for xonotic_exporter # # Blackbox-style multi-target pattern: Prometheus passes each server name # as ?target= and the exporter queries that server on demand. # # The three relabel rules: # 1. Copy __address__ (= server name) into __param_target → sent as ?target= # 2. Copy __param_target into the `instance` label visible in Grafana # 3. Rewrite __address__ to the exporter's actual host:port scrape_configs: - job_name: "xonotic" scrape_interval: 15s scrape_timeout: 10s relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: "127.0.0.1:9260" # exporter address static_configs: - targets: - "vehicles" # matches [[servers]] name in TOML - "resurrection" - "insurrection"