## prometheus.yml ## global: scrape_interval: 15s # By default, scrape targets every 15 seconds. evaluation_interval: 15s # By default, scrape targets every 15 seconds. # scrape_timeout is set to the global default (10s). # Attach these extra labels to all time-series collected by this Prometheus instance. external_labels: monitor: 'prometheus-monitor' rule_files: - '/etc/prometheus/alert.rules' # A scrape configuration containing exactly one endpoint to scrape: scrape_configs: # The job name is added as a label `job=` to any timeseries scraped from this config. - job_name: 'node_exporter' scrape_interval: 15s static_configs: - targets: {% for host in vpn_hosts %} - '{{ host.vpn_ip }}:9100' {% endfor %}