Documentation ¶
Index ¶
- func CreateArchive(local bool, distPath, pyChecksPath string, logFilePaths []string, ...) (string, error)
- func CreateDCAArchive(local bool, distPath, logFilePath string) (string, error)
- func CreatePerformanceProfile(prefix, debugURL string, cpusec int, target *ProfileData) error
- func CreateSecurityAgentArchive(local bool, logFilePath string, runtimeStatus map[string]interface{}) (string, error)
- func GetClusterAgentConfigCheck(w io.Writer, withDebug bool) error
- func GetClusterAgentDiagnose(w io.Writer) error
- func GetClusterChecks(w io.Writer, checkName string) error
- func GetConfigCheck(w io.Writer, withDebug bool) error
- func GetEndpointsChecks(w io.Writer, checkName string) error
- func PrintConfig(w io.Writer, c integration.Config, checkName string)
- func QueryDCAMetrics() ([]byte, error)
- func SendFlare(archivePath string, caseID string, email string) (string, error)
- func SendFlareWithHostname(archivePath string, caseID string, email string, hostname string) (string, error)
- type ProfileData
- type SearchPaths
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateArchive ¶
func CreateArchive(local bool, distPath, pyChecksPath string, logFilePaths []string, pdata ProfileData, ipcError error) (string, error)
CreateArchive packages up the files
func CreateDCAArchive ¶
CreateDCAArchive packages up the files
func CreatePerformanceProfile ¶
func CreatePerformanceProfile(prefix, debugURL string, cpusec int, target *ProfileData) error
CreatePerformanceProfile adds a set of heap and CPU profiles into target, using cpusec as the CPU profile duration, debugURL as the target URL for fetching the profiles and prefix as a prefix for naming them inside target.
It is accepted to pass a nil target.
func CreateSecurityAgentArchive ¶
func CreateSecurityAgentArchive(local bool, logFilePath string, runtimeStatus map[string]interface{}) (string, error)
CreateSecurityAgentArchive packages up the files
func GetClusterAgentConfigCheck ¶
GetClusterAgentConfigCheck proxies GetConfigCheck overidding the URL
func GetClusterAgentDiagnose ¶
GetClusterAgentDiagnose dumps the connectivity checks diagnose to the writer
func GetClusterChecks ¶
GetClusterChecks dumps the clustercheck dispatching state to the writer
func GetConfigCheck ¶
GetConfigCheck dump all loaded configurations to the writer
func GetEndpointsChecks ¶
GetEndpointsChecks dumps the endpointschecks dispatching state to the writer
func PrintConfig ¶
func PrintConfig(w io.Writer, c integration.Config, checkName string)
PrintConfig prints a human-readable representation of a configuration
func QueryDCAMetrics ¶
QueryDCAMetrics gets the metrics payload exposed by the cluster agent
Types ¶
type ProfileData ¶
ProfileData maps (pprof) profile names to the profile data.
type SearchPaths ¶
SearchPaths is just an alias for a map of strings