app

package
v0.0.0-...-dca2ff9 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 61 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:   fmt.Sprintf("%s [command]", os.Args[0]),
		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.`,
		SilenceUsage: true,
	}
)

Functions

func RunJmxListWithMetrics

func RunJmxListWithMetrics() error

RunJmxListWithMetrics is not supported in the Puppy Agent because it doesn't support JMXFetch.

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