collector

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewEbpfTraceCollector    = newTraceCollector[EbpfCfg]
	NewNetlinkTraceCollector = newTraceCollector[NetlinkCfg]
)
View Source
var (
	EbpfMetricsFromMsg    = MetricsFromMsg[EbpfMetrics]
	NetlinkMetricsFromMsg = MetricsFromMsg[NetlinkMetrics]
)

Functions

func MetricsFromMsg

func MetricsFromMsg[M metricsType](msg Msg) M

Types

type EbpfCfg

type EbpfCfg = ebpf.Config

type EbpfCollector added in v0.0.3

type EbpfCollector = *collectorImpl[EbpfCfg]

type EbpfMetrics

type EbpfMetrics = ebpf.Metrics

type Msg

type Msg struct {
	Trace   nftrace.Trace
	Metrics collectors.Telemetry
	Err     error
}

type NetlinkCfg

type NetlinkCfg = netlink.Config

type NetlinkCollector added in v0.0.3

type NetlinkCollector = *collectorImpl[NetlinkCfg]

type NetlinkMetrics

type NetlinkMetrics = netlink.Metrics

type TraceCollector

type TraceCollector interface {
	// Collect starts the collection process and returns a channel to receive collected messages.
	Collect(context.Context) <-chan Msg
	Close() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL