legacy

package
v0.0.0-...-c036721 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAgentConfig

func FromAgentConfig(agentConfig Config) error

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

func ImportDockerConf

func ImportDockerConf(src, dst string, overwrite bool) error

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

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