{{define "content"}}
The web UI serves the router's own state for Prometheus at https://{{.Host}}/metrics: the uplink and its
pings, pending changes, DHCP leases, WireGuard peers and the certificate's expiry. It needs a token (any access)
from the API access page; nothing is switched on here.
scrape_configs:
- job_name: router
scheme: https
tls_config:
insecure_skip_verify: true # or ca_file, if the certificate is not self-signed
authorization:
credentials: rtr_…
static_configs:
- targets: ['{{.Host}}']
- job_name: router-node
static_configs:
- targets: ['{{.Target}}']