config

package
v0.0.0-...-007c8aa Latest Latest
Warning

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

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

Documentation

Overview

Package config contains the general configuration for system-probe

Index

Constants

View Source
const (
	NetworkTracerModule          types.ModuleName = "network_tracer"
	OOMKillProbeModule           types.ModuleName = "oom_kill_probe"
	TCPQueueLengthTracerModule   types.ModuleName = "tcp_queue_length_tracer"
	ProcessModule                types.ModuleName = "process"
	EventMonitorModule           types.ModuleName = "event_monitor"
	DynamicInstrumentationModule types.ModuleName = "dynamic_instrumentation"
	EBPFModule                   types.ModuleName = "ebpf"
	LanguageDetectionModule      types.ModuleName = "language_detection"
	WindowsCrashDetectModule     types.ModuleName = "windows_crash_detection"
	ComplianceModule             types.ModuleName = "compliance"
	PingModule                   types.ModuleName = "ping"
	TracerouteModule             types.ModuleName = "traceroute"
	DiscoveryModule              types.ModuleName = "discovery"
	GPUMonitoringModule          types.ModuleName = "gpu"
)

system-probe module names

View Source
const (
	// Namespace is the top-level configuration key that all system-probe settings are nested underneath
	Namespace = "system_probe_config"
)

Variables

This section is empty.

Functions

func Adjust

func Adjust(cfg model.Config)

Adjust makes changes to the raw config based on deprecations and inferences.

func FullKeyPath

func FullKeyPath(pieces ...string) string

FullKeyPath returns a full key path in the config file by joining multiple path fragments

func NSkey

func NSkey(ns string, pieces ...string) string

NSkey returns a full key path in the config file by joining the given namespace and the rest of the path fragments

func New

func New(configPath string, fleetPoliciesDirPath string) (*types.Config, error)

New creates a config object for system-probe. It assumes no configuration has been loaded as this point.

func ProcessEventDataStreamSupported

func ProcessEventDataStreamSupported() bool

ProcessEventDataStreamSupported returns true if process event data stream is supported

func SetupOptionalDatadogConfigWithDir

func SetupOptionalDatadogConfigWithDir(configDir, configFile string) error

SetupOptionalDatadogConfigWithDir loads the datadog.yaml config file from a given config directory but will not fail on a missing file

func ValidateSocketAddress

func ValidateSocketAddress(sockPath string) error

ValidateSocketAddress validates that the sysprobe socket config option is of the correct format.

Types

This section is empty.

Directories

Path Synopsis
Package types contains the different types used by the system-probe config.
Package types contains the different types used by the system-probe config.

Jump to

Keyboard shortcuts

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