common

package
v0.0.0-...-f3e8d88 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

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

View Source
const DefaultConfPath = "/etc/datadog-agent"

DefaultConfPath points to the folder containing datadog.yaml

Variables

View Source
var (
	// AC is the global object orchestrating checks' loading and running
	AC *autodiscovery.AutoConfig

	// DSD is the global dogstastd instance
	DSD *dogstatsd.Server

	// MetadataScheduler is responsible to orchestrate metadata collection
	MetadataScheduler *metadata.Scheduler

	// Forwarder is the global forwarder instance
	Forwarder forwarder.Forwarder
)
View Source
var (
	// PyChecksPath holds the path to the python checks from integrations-core shipped with the agent
	PyChecksPath = filepath.Join(_here, "..", "..", "checks.d")
)

Functions

func DoGet

func DoGet(c *http.Client, url string) (body []byte, e error)

DoGet is a wrapper around performing HTTP GET requests

func DoPost

func DoPost(c *http.Client, url string, contentType string, body io.Reader) (resp []byte, e error)

DoPost is a wrapper around performing HTTP POST requests

func GetClient

func GetClient(verify bool) *http.Client

GetClient is a convenience function returning an http client

func GetDistPath

func GetDistPath() string

GetDistPath returns the fully qualified path to the 'dist' directory

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 SetupAutoConfig

func SetupAutoConfig(confdPath string)

SetupAutoConfig placeholder if docker is disabled

func SetupConfig

func SetupConfig(confFilePath string) error

SetupConfig fires up the configuration system

func StartAutoConfig

func StartAutoConfig()

StartAutoConfig placeholder if docker is disabled

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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