Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSysprobeUnsupported = errors.New("system-probe unsupported")
ErrSysprobeUnsupported is the unsupported error prefix, for error-class matching from callers
View Source
var NetworkTracer = api.Factory{ Name: "network_tracer", Fn: func(cfg *config.AgentConfig) (api.Module, error) { if supported, msg := ebpf.IsTracerSupportedByOS(cfg.ExcludedBPFLinuxVersions); !supported { return nil, fmt.Errorf("%s: %s", ErrSysprobeUnsupported, msg) } log.Infof("Creating tracer for: %s", filepath.Base(os.Args[0])) t, err := ebpf.NewTracer(config.SysProbeConfigFromConfig(cfg)) return &networkTracer{tracer: t}, err }, }
NetworkTracer is a factory for NPM's tracer
View Source
var OOMKillProbe = api.Factory{ Name: "oom_kill_probe", Fn: func(cfg *config.AgentConfig) (api.Module, error) { if !cfg.CheckIsEnabled("OOM Kill") { log.Info("OOM kill probe disabled") return nil, api.ErrNotEnabled } log.Infof("Starting the OOM Kill probe") okp, err := ebpf.NewOOMKillProbe() return &oomKillModule{okp}, err }, }
OOMKillProbe Factory
View Source
var TCPQueueLength = api.Factory{ Name: "tcp_queue_length_tracer", Fn: func(cfg *config.AgentConfig) (api.Module, error) { if !cfg.CheckIsEnabled("TCP queue length") { log.Infof("TCP queue length tracer disabled") return nil, api.ErrNotEnabled } t, err := ebpf.NewTCPQueueLengthTracer() if err != nil { log.Errorf("unable to start the TCP queue length tracer: %v", err) } return &tcpQueueLengthModule{t}, nil }, }
TCPQueueLength Factory
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.