Versions in this module Expand all Collapse all v0 v0.0.5 May 22, 2024 v0.0.4 Apr 1, 2024 Changes in this version + const ArpTableSubsystem + const CronTableSubsystem + const GatewaysSubsystem + const InterfacesSubsystem + const OpenVPNSubsystem + const ProtocolSubsystem + const ServicesSubsystem + const UnboundDNSSubsystem + const WireguardSubsystem + type Collector struct + Client *opnsense.Client + func New(client *opnsense.Client, log log.Logger, instanceName string, ...) (*Collector, error) + func (c *Collector) Collect(ch chan<- prometheus.Metric) + func (c *Collector) Describe(ch chan<- *prometheus.Desc) + type CollectorInstance interface + Describe func(ch chan<- *prometheus.Desc) + Name func() string + Register func(namespace, isntance string, log log.Logger) + Update func(client *opnsense.Client, ch chan<- prometheus.Metric) *opnsense.APICallError + type Option func(*Collector) error + func WithoutArpTableCollector() Option + func WithoutCronCollector() Option + func WithoutUnboundCollector() Option + func WithoutWireguardCollector() Option + type WireguardCollector struct + LatestHandshake *prometheus.Desc + TransferRx *prometheus.Desc + TransferTx *prometheus.Desc + func (c *WireguardCollector) Describe(ch chan<- *prometheus.Desc) + func (c *WireguardCollector) Name() string + func (c *WireguardCollector) Register(namespace, instanceLabel string, log log.Logger) + func (c *WireguardCollector) Update(client *opnsense.Client, ch chan<- prometheus.Metric) *opnsense.APICallError