# Prometheus Configuration for Besu Metrics
# Add this to your prometheus.yml scrape_configs section

scrape_configs:
  - job_name: 'besu'
    scrape_interval: 15s
    static_configs:
      # Validators (VMID 1000-1004) - metrics enabled but may not expose RPC
      - targets:
          - '192.168.11.100:9545'  # validator-1 (DHCP assigned)
          - '192.168.11.101:9545'  # validator-2 (DHCP assigned)
          - '192.168.11.102:9545'  # validator-3 (DHCP assigned)
          - '192.168.11.103:9545'  # validator-4 (DHCP assigned)
          - '192.168.11.104:9545'  # validator-5 (DHCP assigned)
        labels:
          role: 'validator'
      # Sentries (VMID 1500-1503)
      - targets:
          - '192.168.11.150:9545'  # sentry-1 (DHCP assigned)
          - '192.168.11.151:9545'  # sentry-2 (DHCP assigned)
          - '192.168.11.152:9545'  # sentry-3 (DHCP assigned)
          - '192.168.11.153:9545'  # sentry-4 (DHCP assigned)
        labels:
          role: 'sentry'
      # RPC Nodes (VMID 2500-2502)
      - targets:
          - '192.168.11.250:9545'  # rpc-1 (DHCP assigned)
          - '192.168.11.251:9545'  # rpc-2 (DHCP assigned)
          - '192.168.11.252:9545'  # rpc-3 (DHCP assigned)
        labels:
          role: 'rpc'
