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 ControlService ¶
ControlService sets the service state via the Service Control Manager
func StartService ¶
StartService starts the agent service via the Service Control Manager
func StopService ¶
StopService stops the agent service via the Service Control Manager
Types ¶
type EnumServiceStatus ¶
type EnumServiceStatus struct {
// contains filtered or unexported fields
}
EnumServiceStatus complete enumerated service information only exported so binary.Read works
type ServiceStatus ¶
type ServiceStatus struct { DwServiceType uint32 DwCurrentState uint32 DwControlsAccepted uint32 DwWin32ExitCode uint32 DwServiceSpecificExitCode uint32 DwCheckPoint uint32 DwWaitHint uint32 }
ServiceStatus reports information pertaining to enumerated services only exported so binary.Read works
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
Source Files ¶
- app.go
- check.go
- config.go
- config_check.go
- control_service_windows.go
- dependent_services.go
- dependent_services_windows.go
- diagnose.go
- dogstatsd_stats.go
- flare.go
- health.go
- hostname.go
- import.go
- install_service_windows.go
- launchgui.go
- listchecks.go
- open_browser_windows.go
- regimport_windows.go
- reloadcheck.go
- remove_service_windows.go
- run.go
- secret.go
- start.go
- status.go
- tagger_list.go
- version.go
Directories ¶
Path | Synopsis |
---|---|
Package standalone provides utility functions for Agent CLI commands that set up a new in-process Agent runtime (ex: check, jmx commands), as opposed to CLI commands that query a running Agent's IPC API.
|
Package standalone provides utility functions for Agent CLI commands that set up a new in-process Agent runtime (ex: check, jmx commands), as opposed to CLI commands that query a running Agent's IPC API. |
Click to show internal directories.
Click to hide internal directories.