collectors

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorMsg

type CollectorMsg struct {
	Trace NftTrace
	Err   error
}

type CountCollectNlErrMemEvent

type CountCollectNlErrMemEvent struct {
	observer.EventType
}

type CountLostSampleEvent

type CountLostSampleEvent struct {
	observer.EventType
	Cnt uint64
}

type CountOverflowQueEvent

type CountOverflowQueEvent struct {
	observer.EventType
	Cnt uint64
}

type CountRcvPktEvent

type CountRcvPktEvent struct {
	observer.EventType
	Cnt uint64
}

type CountRcvSampleEvent

type CountRcvSampleEvent struct {
	observer.EventType
	Cnt uint64
}

type NftTrace

type NftTrace struct {
	TraceHash  uint32
	NetnsInum  uint32
	Table      string
	Chain      string
	JumpTarget string
	RuleHandle uint64
	Family     byte
	Type       uint32
	Id         uint32
	Iif        uint32
	Oif        uint32
	Mark       uint32
	Verdict    uint32
	Nfproto    uint32
	Policy     uint32
	Iiftype    uint16
	Oiftype    uint16
	Iifname    string
	Oifname    string
	SMacAddr   string
	DMacAddr   string
	IpVersion  uint8
	SAddr      string
	DAddr      string
	SPort      uint32
	DPort      uint32
	Length     uint32
	IpProtocol uint8
	Cnt        uint64
	ReadyMsk   bool
	Metrics    Telemetry
}

func (*NftTrace) Reset

func (n *NftTrace) Reset()

type Telemetry

type Telemetry interface {
	// contains filtered or unexported methods
}

type TraceCollector

type TraceCollector interface {
	Collect(ctx context.Context) <-chan CollectorMsg
	Close() error
}

TraceCollector - common interface to collect traces

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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