common

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: 42 Imported by: 8 modules, 22 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package common provides a set of common symbols needed by different packages, to avoid circular dependencies.

Package common provides a set of common symbols needed by different packages, to avoid circular dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DualTaggerParams

func DualTaggerParams() (tagger.DualParams, tagger.RemoteParams)

DualTaggerParams returns the params use inside the main agent

func GetPythonPaths

func GetPythonPaths() []string

GetPythonPaths returns the paths (in order of precedence) from where the agent should load python modules and checks

func ImportConfig

func ImportConfig(oldConfigDir string, newConfigDir string, force bool) error

ImportConfig imports the agent5 configuration into the agent6 yaml config

func LoadComponents added in v0.9.0

func LoadComponents(ac autodiscovery.Component, confdPath string)

LoadComponents configures several common Agent components: tagger, collector, scheduler and autodiscovery

func NewSettingsClient added in v0.9.0

func NewSettingsClient(client ipc.HTTPClient) (settings.Client, error)

NewSettingsClient returns a configured runtime settings client.

func SetupInternalProfiling

func SetupInternalProfiling(settings settings.Component, cfg model.Reader, configPrefix string)

SetupInternalProfiling is a common helper to configure runtime settings for internal profiling.

func WaitForAllConfigsFromAD

func WaitForAllConfigsFromAD(ctx context.Context, ac autodiscovery.Component) (configs []integration.Config, lastError error)

WaitForAllConfigsFromAD waits until its context expires, and then returns the full set of checks scheduled by AD.

func WaitForConfigsFromAD

func WaitForConfigsFromAD(ctx context.Context,
	checkNames []string,
	discoveryMinInstances int,
	instanceFilter string,
	ac autodiscovery.Component) (configs []integration.Config, lastError error)

WaitForConfigsFromAD waits until a count of discoveryMinInstances configs with names in checkNames are scheduled by AD, and returns the matches.

If the context is cancelled, then any accumulated, matching changes are returned, even if that is fewer than discoveryMinInstances.

Types

type TransformationFunc

type TransformationFunc func(rawData []byte) ([]byte, error)

TransformationFunc type represents transformation applicable to byte slices

Directories

Path Synopsis
Package misconfig implements misconfiguration related types and functions
Package misconfig implements misconfiguration related types and functions
path module
Package signals defines global agent signal channels
Package signals defines global agent signal channels

Jump to

Keyboard shortcuts

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