Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigStatus ¶
type ConfigStatus struct {
LogLevel string `json:"log_level"`
}
ConfigStatus holds config settings from process-agent
type ConnectionError ¶
type ConnectionError struct {
// contains filtered or unexported fields
}
ConnectionError represents an error to connect to an HTTP server
func NewConnectionError ¶
func NewConnectionError(err error) ConnectionError
NewConnectionError returns a new ConnectionError
type CoreStatus ¶
type CoreStatus struct {
AgentVersion string `json:"version"`
GoVersion string `json:"go_version"`
Arch string `json:"build_arch"`
Config ConfigStatus `json:"config"`
Metadata hostMetadataUtils.Payload `json:"metadata"`
}
CoreStatus holds core info about the process-agent
type ExpvarsMap ¶
type ExpvarsMap struct {
Pid int `json:"pid"`
Uptime int `json:"uptime"`
UptimeNano float64 `json:"uptime_nano"`
MemStats MemInfo `json:"memstats"`
Version InfoVersion `json:"version"`
DockerSocket string `json:"docker_socket"`
LastCollectTime string `json:"last_collect_time"`
ProcessCount int `json:"process_count"`
ContainerCount int `json:"container_count"`
ProcessQueueSize int `json:"process_queue_size"`
RTProcessQueueSize int `json:"rtprocess_queue_size"`
ConnectionsQueueSize int `json:"connections_queue_size"`
EventQueueSize int `json:"event_queue_size"`
ProcessQueueBytes int `json:"process_queue_bytes"`
RTProcessQueueBytes int `json:"rtprocess_queue_bytes"`
ConnectionsQueueBytes int `json:"connections_queue_bytes"`
EventQueueBytes int `json:"event_queue_bytes"`
ContainerID string `json:"container_id"`
ProxyURL string `json:"proxy_url"`
LogFile string `json:"log_file"`
EnabledChecks []string `json:"enabled_checks"`
Endpoints map[string][]string `json:"endpoints"`
DropCheckPayloads []string `json:"drop_check_payloads"`
SystemProbeProcessModuleEnabled bool `json:"system_probe_process_module_enabled"`
LanguageDetectionEnabled bool `json:"language_detection_enabled"`
WlmExtractorCacheSize int `json:"workloadmeta_extractor_cache_size"`
WlmExtractorStaleDiffs int `json:"workloadmeta_extractor_stale_diffs"`
WlmExtractorDiffsDropped int `json:"workloadmeta_extractor_diffs_dropped"`
SubmissionErrorCount int `json:"submission_error_count"`
}
type InfoVersion ¶
type InfoVersion struct {
Version string
GitCommit string
GitBranch string
BuildDate string
GoVersion string
}
InfoVersion holds information about process-agent version
type MemInfo ¶
type MemInfo struct {
Alloc uint64 `json:"alloc"`
}
MemInfo holds information about memory usage from process-agent
type ProcessExpvars ¶
type ProcessExpvars struct {
ExpvarsMap ExpvarsMap `json:"process_agent"`
}
ProcessExpvars holds values fetched from the exp var server
type Status ¶
type Status struct {
Date float64 `json:"date"`
Core CoreStatus `json:"core"` // Contains fields that are collected similarly to the core agent in pkg/status
Expvars ProcessExpvars `json:"expvars"` // Contains the expvars retrieved from the process agent
}
Status holds runtime information from process-agent
func GetStatus ¶
func GetStatus(coreConfig pkgconfigmodel.Reader, expVarURL string, hostname hostnameinterface.Component) (*Status, error)
GetStatus returns a Status object with runtime information about process-agent
type StatusOption ¶
type StatusOption func(s *Status)
StatusOption is a function that acts on a Status object
func OverrideTime ¶
func OverrideTime(t time.Time) StatusOption
OverrideTime overrides the Date from a Status object