-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
diagnose.go
25 lines (20 loc) · 1001 Bytes
/
diagnose.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
package flare
import (
"io"
"github.com/DataDog/datadog-agent/pkg/diagnose"
)
// GetClusterAgentDiagnose dumps the connectivity checks diagnose to the writer
func GetClusterAgentDiagnose(w io.Writer) error {
// Verbose: true - to show details like if was done a while ago
// RunLocal: true - do not attept to run in actual running agent but
// may need to implement it in future
// Include: connectivity-datadog-autodiscovery - limit to a single
// diagnose suite as it was done in this agent for
// a while. Most likely need to relax or add more
// diagnose suites in the future
return diagnose.RunStdOutLocalCheck(w, true, diagnose.RegisterConnectivityAutodiscovery)
}