Versions in this module Expand all Collapse all v4 v4.0.0 Dec 4, 2022 Changes in this version + const Namespace + var GlobalLabel prometheus.Labels + func Available() []string + func RegisterCollector(name string, builder CollectorBuilder) + type Collector interface + OnEvent func(event any) + func Build(collector string, cfg config.Config) (Collector, error) + func NewNetworkCollector(cfg config.Config) (Collector, error) + type CollectorBuilder func(cfg config.Config) (Collector, error) + type NetworkCollector struct + BytesReceiveSpeed *prometheus.Desc + BytesReceivedTotal *prometheus.Desc + BytesSentSpeed *prometheus.Desc + BytesSentTotal *prometheus.Desc + BytesTotal *prometheus.Desc + ErrIn *prometheus.Desc + ErrOut *prometheus.Desc + ErrTotal *prometheus.Desc + PacketsReceivedTotal *prometheus.Desc + PacketsSentTotal *prometheus.Desc + PacketsTotal *prometheus.Desc + func (c *NetworkCollector) Collect(ch chan<- prometheus.Metric) + func (c *NetworkCollector) Describe(ch chan<- *prometheus.Desc) + func (c *NetworkCollector) OnEvent(event any)