Documentation ¶
Index ¶
Constants ¶
View Source
const (
Namespace = "monibuca"
)
Variables ¶
View Source
var GlobalLabel prometheus.Labels
Functions ¶
func RegisterCollector ¶
func RegisterCollector(name string, builder CollectorBuilder)
Types ¶
type Collector ¶
type Collector interface { prometheus.Collector OnEvent(event any) }
type NetworkCollector ¶
type NetworkCollector struct { BytesReceivedTotal *prometheus.Desc BytesSentTotal *prometheus.Desc BytesTotal *prometheus.Desc BytesReceiveSpeed *prometheus.Desc BytesSentSpeed *prometheus.Desc PacketsReceivedTotal *prometheus.Desc PacketsSentTotal *prometheus.Desc PacketsTotal *prometheus.Desc ErrIn *prometheus.Desc ErrOut *prometheus.Desc ErrTotal *prometheus.Desc // contains filtered or unexported fields }
A NetworkCollector is a Prometheus Collector for Perflib Network Interface metrics
func (*NetworkCollector) Collect ¶
func (c *NetworkCollector) Collect(ch chan<- prometheus.Metric)
func (*NetworkCollector) Describe ¶
func (c *NetworkCollector) Describe(ch chan<- *prometheus.Desc)
func (*NetworkCollector) OnEvent ¶
func (c *NetworkCollector) OnEvent(event any)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.