OPNsense-Exporter

OPNsense-Exporter

Docker 应用程序 from Florian Dambrine's Repository

概述

OPNsense Exporter - Prometheus exporter for OPNsense firewalls. Collects and exposes metrics from OPNsense via its REST API, including ARP tables, DNS (Unbound), WireGuard, OpenVPN, IPsec, firewall statistics, and firmware information.

运行时参数

网络用户界面
http://[IP]:[PORT:8080]/metrics
网络
bridge
特权
false

模板配置

Metrics PortPorttcp

Port on which the /metrics endpoint is exposed for Prometheus scraping.

目标
8080
默认值
8080
价值
8080
OPNsense ProtocolVariable

Protocol used to reach the OPNsense API. Use 'https' (recommended) or 'http'.

目标
OPNSENSE_EXPORTER_OPS_PROTOCOL
默认值
https
价值
https
OPNsense AddressVariable

Hostname or IP address of the OPNsense firewall (e.g. 192.168.1.1 or opnsense.lan). Do NOT include the protocol prefix.

目标
OPNSENSE_EXPORTER_OPS_API
OPNsense API KeyVariable

API key generated for the read-only OPNsense user (System > Access > Users).

目标
OPNSENSE_EXPORTER_OPS_API_KEY
OPNsense API SecretVariable

API secret generated for the read-only OPNsense user (System > Access > Users).

目标
OPNSENSE_EXPORTER_OPS_API_SECRET
Skip TLS VerificationVariable

Set to 'true' to disable TLS certificate verification (useful for self-signed certs). Not recommended in production.

目标
OPNSENSE_EXPORTER_OPS_INSECURE
默认值
false
价值
false
Instance LabelVariable

Label added to all metrics to identify this OPNsense instance. Useful when scraping multiple firewalls.

目标
OPNSENSE_EXPORTER_INSTANCE_LABEL
默认值
opnsense
价值
opnsense
Log LevelVariable

Log verbosity. Options: debug, info, warn, error.

目标
OPNSENSE_EXPORTER_LOG_LEVEL
默认值
info
价值
info
Disable ARP TableVariable

Set to 'true' to disable ARP table metric collection.

目标
OPNSENSE_EXPORTER_DISABLE_ARP_TABLE
默认值
false
价值
false
Disable Unbound DNSVariable

Set to 'true' to disable Unbound DNS metric collection.

目标
OPNSENSE_EXPORTER_DISABLE_UNBOUND
默认值
false
价值
false
Disable WireGuardVariable

Set to 'true' to disable WireGuard VPN metric collection.

目标
OPNSENSE_EXPORTER_DISABLE_WIREGUARD
默认值
false
价值
false
Disable OpenVPNVariable

Set to 'true' to disable OpenVPN metric collection.

目标
OPNSENSE_EXPORTER_DISABLE_OPENVPN
默认值
false
价值
false
Disable IPsecVariable

Set to 'true' to disable IPsec VPN metric collection.

目标
OPNSENSE_EXPORTER_DISABLE_IPSEC
默认值
false
价值
false
Disable FirewallVariable

Set to 'true' to disable firewall statistics metric collection.

目标
OPNSENSE_EXPORTER_DISABLE_FIREWALL
默认值
false
价值
false
Disable FirmwareVariable

Set to 'true' to disable firmware information metric collection.

目标
OPNSENSE_EXPORTER_DISABLE_FIRMWARE
默认值
false
价值
false
Disable Cron TableVariable

Set to 'true' to disable cron task metric collection.

目标
OPNSENSE_EXPORTER_DISABLE_CRON_TABLE
默认值
false
价值
false
Disable Exporter MetricsVariable

Set to 'true' to exclude internal Go/process metrics from the /metrics output.

目标
OPNSENSE_EXPORTER_DISABLE_EXPORTER_METRICS
默认值
false
价值
false

详细信息

存储库
ghcr.io/athennamind/opnsense-exporter
最后更新2026-05-31
初见2026-04-07

在Unraid 上运行 OPNsense-Exporter 。

OPNsense-Exporter 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。