Upgrading¶
This page lists breaking changes by release, plus notes for users migrating from the upstream AthennaMind exporter. Full details for every release: Changelog.
Upgrading to v1.0 from v0.x¶
- IPsec SPI labels removed — phase-2 metrics no longer carry
spi_in/spi_outlabels (remaining:description,name,phase1_name). SPIs rotate on every rekey, so the labels caused unbounded series churn. Update any PromQL that referenced them. - OpenVPN per-session metrics are opt-in — the per-session
opnsense_openvpn_sessionsseries (username and tunnel-address labels) is only emitted with--exporter.enable-openvpn-details. The aggregateopnsense_openvpn_sessions_totalandopnsense_openvpn_sessions_by_instanceseries are always emitted. Set the flag to restore the old behaviour. - WireGuard handshake metric type —
opnsense_wireguard_peer_last_handshake_secondschanged from counter to gauge (it is a Unix timestamp). Replacerate(opnsense_wireguard_peer_last_handshake_seconds[...])with the purpose-builtopnsense_wireguard_peer_handshake_age_secondsgauge.
Migrating from upstream (AthennaMind/opnsense-exporter)¶
In addition to the items above:
- Image and module path — pull
ghcr.io/rknightion/opnsense-exporter; the Go module isgithub.com/rknightion/opnsense-exporter. --runtime.gomaxprocsremoved — Go now auto-detects CPUs; delete the flag from any unit files or manifests./debug/pprof/*endpoints removed — replaced by optional authenticated push profiling via--pyroscope.*flags. See Configuration.- Firmware metrics reworked — version strings consolidated into
opnsense_firmware_info(labels) plus numeric gauges (needs_reboot,upgrade_needs_reboot,last_check_timestamp_seconds,new_packages_count,upgrade_packages_count). --exporter.instance-labelnow optional — defaults to the hostname reported by the OPNsense API.- Many new collectors are enabled by default — review the collector switches and disable what you don't need.