# Prometheus — homelab metrics (NAS stack scrapet LAN + bridge targets).
global:
  scrape_interval: 15s
  evaluation_interval: 15s

scrape_configs:
  - job_name: prometheus
    static_configs:
      - targets: ["localhost:9090"]

  - job_name: postgres-exporter
    static_configs:
      - targets: ["postgres-exporter:9187"]
        labels:
          instance: postgres-vm102

  # Neo4j Community 2026 heeft geen Prometheus :2004 — gebruik Neo4j dashboard via Postgres/Grafana SQL.
  # Enterprise: zet server.metrics.prometheus.enabled=true en scrape :2004.

  - job_name: node-exporter
    scrape_interval: 30s
    static_configs:
      - targets: ["192.168.1.105:9100"]
        labels:
          instance: vm102-postgress
          role: security
      - targets: ["192.168.1.211:9100"]
        labels:
          instance: synology-nas
          role: nas

  # Proxmox: vul targets in prometheus/targets/extra.yml (prometheus-pve-exporter :9221)
  - job_name: proxmox
    scrape_interval: 30s
    file_sd_configs:
      - files:
          - /etc/prometheus/targets/extra.yml
        refresh_interval: 1m
