collector

package
v0.0.0-...-e70f483 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled(cfg pkgconfigmodel.Reader) bool

Enabled checks to see if we should enable the local process collector. Since its job is to collect processes when the process check is disabled, we only enable it when `process_config.process_collection.enabled` == false. Additionally, if the remote process collector is not enabled in the core agent, there is no reason to collect processes. Therefore, we check `language_detection.enabled`. On Linux, process checks always run in the core agent, so this collector is always disabled. On non-Linux, we only want to run this collector in the process agent.

Types

type Collector

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

Collector collects processes to send to the remote process collector in the core agent. It is only intended to be used when language detection is enabled, and the process check is disabled.

func NewProcessCollector

func NewProcessCollector(coreConfig, sysProbeConfig pkgconfigmodel.Reader, grpcServerTLSConfig *tls.Config) *Collector

NewProcessCollector creates a new process collector.

func (*Collector) Start

func (c *Collector) Start(ctx context.Context, store workloadmeta.Component) error

Start will start the collector

Jump to

Keyboard shortcuts

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