legacy

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 12 Imported by: 7 modules, 1 package

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildProxySettings

func BuildProxySettings(agentConfig Config) (map[string]string, error)

BuildProxySettings returns a map with http/https proxies based on old config

func FromAgentConfig

func FromAgentConfig(agentConfig Config, converter *config.LegacyConfigConverter) error

FromAgentConfig reads the old agentConfig configuration, converts and merges the values into the current configuration object

func ImportDockerConf

func ImportDockerConf(src, dst string, overwrite bool, converter *config.LegacyConfigConverter) error

ImportDockerConf is a place holder if the agent is built without the docker flag

func ImportKubernetesConf

func ImportKubernetesConf(src, dst string, overwrite bool, converter *config.LegacyConfigConverter) error

ImportKubernetesConf reads the configuration from the kubernetes check (agent5) and create the configuration for the new kubelet check (agent 6) and moves relevant options to datadog.yaml

func ImportProcessAgentConfig

func ImportProcessAgentConfig(datadogConfPath, processAgentConfPath string) (bool, error)

ImportProcessAgentConfig reads `datadog.conf` and returns an ini config object, ready to be dumped to a .ini file.

func ImportTraceAgentConfig

func ImportTraceAgentConfig(datadogConfPath, traceAgentConfPath string) (bool, error)

ImportTraceAgentConfig reads `datadog.conf` and returns an ini config object, ready to be dumped to a .ini file.

Types

type Config

type Config map[string]string

Config is a simple key/value representation of the legacy agentConfig dictionary

func GetAgentConfig

func GetAgentConfig(datadogConfPath string) (Config, error)

GetAgentConfig reads `datadog.conf` and returns a map that contains the same values as the agentConfig dictionary returned by `get_config()` in config.py

Jump to

Keyboard shortcuts

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