process

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Arguments{
	Join:            nil,
	RefreshInterval: 60 * time.Second,
	DiscoverConfig: DiscoverConfig{
		Cwd:         true,
		Exe:         true,
		Commandline: true,
		ContainerID: true,
	},
}

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Join            []discovery.Target `alloy:"join,attr,optional"`
	RefreshInterval time.Duration      `alloy:"refresh_interval,attr,optional"`
	DiscoverConfig  DiscoverConfig     `alloy:"discover_config,block,optional"`
}

func (*Arguments) SetToDefault

func (args *Arguments) SetToDefault()

type Component

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

func New

func New(opts component.Options, args Arguments) (*Component, error)

func (*Component) Run

func (c *Component) Run(ctx context.Context) error

func (*Component) Update

func (c *Component) Update(args component.Arguments) error

type DiscoverConfig

type DiscoverConfig struct {
	Cwd         bool `alloy:"cwd,attr,optional"`
	Exe         bool `alloy:"exe,attr,optional"`
	Commandline bool `alloy:"commandline,attr,optional"`
	Username    bool `alloy:"username,attr,optional"`
	UID         bool `alloy:"uid,attr,optional"`
	ContainerID bool `alloy:"container_id,attr,optional"`
}

Jump to

Keyboard shortcuts

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