agent

package
v1.7.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flows

type Flows struct {
	// contains filtered or unexported fields
}

Flows reporting agent

func FlowsAgent

func FlowsAgent(ctxInfo *global.ContextInfo, cfg *beyla.Config) (*Flows, error)

FlowsAgent instantiates a new agent, given a configuration.

func (*Flows) Run

func (f *Flows) Run(ctx context.Context) error

Run a Flows agent. The function will keep running in the same thread until the passed context is canceled

func (*Flows) Status

func (f *Flows) Status() Status

type FlowsPipeline

type FlowsPipeline struct {
	MapTracer     pipe.Start[[]*ebpf.Record]
	RingBufTracer pipe.Start[[]*ebpf.Record]

	ProtoFilter     pipe.Middle[[]*ebpf.Record, []*ebpf.Record]
	Deduper         pipe.Middle[[]*ebpf.Record, []*ebpf.Record]
	Kubernetes      pipe.Middle[[]*ebpf.Record, []*ebpf.Record]
	ReverseDNS      pipe.Middle[[]*ebpf.Record, []*ebpf.Record]
	CIDRs           pipe.Middle[[]*ebpf.Record, []*ebpf.Record]
	Decorator       pipe.Middle[[]*ebpf.Record, []*ebpf.Record]
	AttributeFilter pipe.Middle[[]*ebpf.Record, []*ebpf.Record]

	OTEL    pipe.Final[[]*ebpf.Record]
	Prom    pipe.Final[[]*ebpf.Record]
	Printer pipe.Final[[]*ebpf.Record]
}

FlowsPipeline defines the different nodes in the Beyla's NetO11y module, as well as how they are interconnected (in its Connect() method)

func (*FlowsPipeline) Connect added in v1.5.0

func (fp *FlowsPipeline) Connect()

Connect specifies how the pipeline nodes are connected

type Status

type Status int

Status of the agent service. Helps on the health report as well as making some asynchronous tests waiting for the agent to accept flows.

const (
	StatusNotStarted Status = iota
	StatusStarting
	StatusStarted
	StatusStopping
	StatusStopped
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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