app

package
v0.0.0-...-1d9613f Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Overview

Package app implements the Agent main loop, orchestrating all the components and providing the command line interface.

Index

Constants

This section is empty.

Variables

View Source
var (
	// AgentCmd is the root command
	AgentCmd = &cobra.Command{
		Use:   "agent [command]",
		Short: "Datadog Agent at your service.",
		Long: `
The Datadog Agent faithfully collects events and metrics and brings them
to Datadog on your behalf so that you can do something useful with your
monitoring and performance data.`,
	}
)

Functions

func StartAgent

func StartAgent() error

StartAgent Initializes the agent process

func StopAgent

func StopAgent()

StopAgent Tears down the agent process

Types

type Servicedef

type Servicedef struct {
	// contains filtered or unexported fields
}

Servicedef defines a service

func (*Servicedef) IsEnabled

func (s *Servicedef) IsEnabled() bool

IsEnabled checks to see if a given service should be started

func (*Servicedef) Start

func (s *Servicedef) Start() error

Start starts the service

func (*Servicedef) Stop

func (s *Servicedef) Stop() error

Stop stops the service

Jump to

Keyboard shortcuts

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