flare

package
v0.0.0-...-7983b3b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

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

func CreateDCAArchive(local bool, distPath, logFilePath string) (string, error)

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

func GetClusterAgentConfigCheck(w io.Writer, withDebug bool) error

GetClusterAgentConfigCheck proxies GetConfigCheck overidding the URL

func GetClusterAgentDiagnose

func GetClusterAgentDiagnose(w io.Writer) error

GetClusterAgentDiagnose dumps the connectivity checks diagnose to the writer

func GetClusterChecks

func GetClusterChecks(w io.Writer, checkName string) error

GetClusterChecks dumps the clustercheck dispatching state to the writer

func GetConfigCheck

func GetConfigCheck(w io.Writer, withDebug bool) error

GetConfigCheck dump all loaded configurations to the writer

func GetEndpointsChecks

func GetEndpointsChecks(w io.Writer, checkName string) error

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

func QueryDCAMetrics() ([]byte, error)

QueryDCAMetrics gets the metrics payload exposed by the cluster agent

func SendFlare

func SendFlare(archivePath string, caseID string, email string) (string, error)

SendFlare will send a flare and grab the local hostname

func SendFlareWithHostname

func SendFlareWithHostname(archivePath string, caseID string, email string, hostname string) (string, error)

SendFlareWithHostname sends a flare with a set hostname

Types

type ProfileData

type ProfileData map[string][]byte

ProfileData maps (pprof) profile names to the profile data.

type SearchPaths

type SearchPaths map[string]string

SearchPaths is just an alias for a map of strings

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL