process

package
v0.0.0-...-065eb90 Latest Latest
Warning

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

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

Documentation

Overview

Package process implements the local process collector for Workloadmeta.

Package process implements the local process collector for Workloadmeta.

Package process implements the local process collector for Workloadmeta.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFxOptions

func GetFxOptions() fx.Option

GetFxOptions returns the FX framework options for the collector

func NewCollector

func NewCollector() (workloadmeta.CollectorProvider, error)

NewCollector returns a new local process collector provider and an error. Currently, this is only used on Linux when language detection and run in core agent are enabled.

Types

type Data

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

Data collects a basic state of process data such as cmdline args. This is currently used for metadata extraction from processes. This is a starting point for providing process data across all checks as part of the migration to components.

func NewProcessData

func NewProcessData() *Data

NewProcessData returns a new ProcessData from the given config

func (*Data) Fetch

func (p *Data) Fetch() error

Fetch retrieves process data from the system and notifies registered extractors

func (*Data) Register

func (p *Data) Register(e metadata.Extractor)

Register adds an Extractor which will be notified for metadata extraction

Jump to

Keyboard shortcuts

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