Documentation ¶
Overview ¶
Package diagnose provides the diagnose functionality for the Agent.
Index ¶
- func ListStdOut(w io.Writer, diagCfg diagnosis.Config)
- func RegisterCheckDatadog(checkDatadog func() []diagnosis.Diagnosis) func(catalog *diagnosis.Catalog)
- func RegisterConnectivityAutodiscovery(catalog *diagnosis.Catalog)
- func RegisterConnectivityDatadogCoreEndpoints(diagCfg diagnosis.Config) func(catalog *diagnosis.Catalog)
- func RegisterConnectivityDatadogEventPlatform(catalog *diagnosis.Catalog)
- func RegisterPortConflict(catalog *diagnosis.Catalog)
- func RunDiagnose(diagCfg diagnosis.Config, getSuites func() []diagnosis.Suite) (*diagnosis.DiagnoseResult, error)
- func RunDiagnoseStdOut(w io.Writer, diagCfg diagnosis.Config, diagnoses *diagnosis.DiagnoseResult) error
- func RunInAgentProcess(diagCfg diagnosis.Config, deps SuitesDepsInAgentProcess) (*diagnosis.DiagnoseResult, error)
- func RunInCLIProcess(diagCfg diagnosis.Config, deps SuitesDepsInCLIProcess) (*diagnosis.DiagnoseResult, error)
- func RunLocalCheck(diagCfg diagnosis.Config, registries ...func(*diagnosis.Catalog)) (*diagnosis.DiagnoseResult, error)
- type SuitesDeps
- type SuitesDepsInAgentProcess
- type SuitesDepsInCLIProcess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListStdOut ¶
ListStdOut enumerates registered Diagnose suites and get their diagnoses for human consumption
func RegisterCheckDatadog ¶
func RegisterCheckDatadog(checkDatadog func() []diagnosis.Diagnosis) func(catalog *diagnosis.Catalog)
RegisterCheckDatadog registers the check-datadog diagnose suite.
func RegisterConnectivityAutodiscovery ¶
RegisterConnectivityAutodiscovery registers the connectivity-datadog-autodiscovery diagnose suite.
func RegisterConnectivityDatadogCoreEndpoints ¶
func RegisterConnectivityDatadogCoreEndpoints(diagCfg diagnosis.Config) func(catalog *diagnosis.Catalog)
RegisterConnectivityDatadogCoreEndpoints registers the connectivity-datadog-core-endpoints diagnose suite.
func RegisterConnectivityDatadogEventPlatform ¶
RegisterConnectivityDatadogEventPlatform registers the connectivity-datadog-event-platform diagnose suite.
func RegisterPortConflict ¶
RegisterPortConflict registers the port-conflict diagnose suite.
func RunDiagnose ¶
func RunDiagnose(diagCfg diagnosis.Config, getSuites func() []diagnosis.Suite) (*diagnosis.DiagnoseResult, error)
RunDiagnose runs diagnoses.
func RunDiagnoseStdOut ¶
func RunDiagnoseStdOut(w io.Writer, diagCfg diagnosis.Config, diagnoses *diagnosis.DiagnoseResult) error
RunDiagnoseStdOut runs the diagnose and outputs the results to the writer.
func RunInAgentProcess ¶
func RunInAgentProcess(diagCfg diagnosis.Config, deps SuitesDepsInAgentProcess) (*diagnosis.DiagnoseResult, error)
RunInAgentProcess runs diagnoses in the Agent process.
func RunInCLIProcess ¶
func RunInCLIProcess(diagCfg diagnosis.Config, deps SuitesDepsInCLIProcess) (*diagnosis.DiagnoseResult, error)
RunInCLIProcess run diagnoses in the CLI process.
func RunLocalCheck ¶
func RunLocalCheck(diagCfg diagnosis.Config, registries ...func(*diagnosis.Catalog)) (*diagnosis.DiagnoseResult, error)
RunLocalCheck runs locally the checks created by the registries.
Types ¶
type SuitesDeps ¶
type SuitesDeps struct { SenderManager sender.DiagnoseSenderManager Collector optional.Option[collector.Component] SecretResolver secrets.Component WMeta optional.Option[workloadmeta.Component] AC autodiscovery.Component Tagger tagger.Component }
SuitesDeps stores the dependencies for the diagnose suites.
func NewSuitesDeps ¶
func NewSuitesDeps( senderManager sender.DiagnoseSenderManager, collector optional.Option[collector.Component], secretResolver secrets.Component, wmeta optional.Option[workloadmeta.Component], ac autodiscovery.Component, tagger tagger.Component, ) SuitesDeps
NewSuitesDeps returns a new SuitesDeps.
func (*SuitesDeps) GetWMeta ¶
func (s *SuitesDeps) GetWMeta() optional.Option[workloadmeta.Component]
GetWMeta returns the workload metadata instance
type SuitesDepsInAgentProcess ¶
type SuitesDepsInAgentProcess struct {
// contains filtered or unexported fields
}
SuitesDepsInAgentProcess stores the dependencies for the diagnose suites when running the Agent Process.
func NewSuitesDepsInAgentProcess ¶
func NewSuitesDepsInAgentProcess(collector collector.Component) SuitesDepsInAgentProcess
NewSuitesDepsInAgentProcess returns a new instance of SuitesDepsInAgentProcess.
type SuitesDepsInCLIProcess ¶
type SuitesDepsInCLIProcess struct { AC autodiscovery.Component // contains filtered or unexported fields }
SuitesDepsInCLIProcess stores the dependencies for the diagnose suites when running the CLI Process.
func NewSuitesDepsInCLIProcess ¶
func NewSuitesDepsInCLIProcess( senderManager sender.DiagnoseSenderManager, secretResolver secrets.Component, wmeta optional.Option[workloadmeta.Component], ac autodiscovery.Component, tagger tagger.Component, ) SuitesDepsInCLIProcess
NewSuitesDepsInCLIProcess returns a new instance of SuitesDepsInCLIProcess.
Directories ¶
Path | Synopsis |
---|---|
Package connectivity contains logic for connectivity troubleshooting between the Agent and Datadog endpoints.
|
Package connectivity contains logic for connectivity troubleshooting between the Agent and Datadog endpoints. |
Package diagnosis contains types used by the "agent diagnose" command.
|
Package diagnosis contains types used by the "agent diagnose" command. |
Package ports provides a diagnose suite for the ports used in the agent configuration
|
Package ports provides a diagnose suite for the ports used in the agent configuration |