types

package
v0.9.1-0...-495529f Latest Latest
Warning

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

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

Documentation

Overview

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

This types are extracted to their own module so other can link against it without compiling with the entire system-probe code base.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled        bool
	EnabledModules map[ModuleName]struct{}

	// When the system-probe is enabled in a separate container, we need a way to also disable the system-probe
	// packaged in the main agent container (without disabling network collection on the process-agent).
	ExternalSystemProbe bool

	SocketAddress      string
	MaxConnsPerMessage int

	LogFile          string
	LogLevel         string
	DebugPort        int
	HealthPort       int
	TelemetryEnabled bool

	StatsdHost string
	StatsdPort int
}

Config represents the configuration options for the system-probe

func (Config) ModuleIsEnabled

func (c Config) ModuleIsEnabled(modName ModuleName) bool

ModuleIsEnabled returns a bool indicating if the given module name is enabled.

type ModuleName

type ModuleName string

ModuleName is a typed alias for string, used only for module names

Jump to

Keyboard shortcuts

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