Documentation ¶
Index ¶
- Constants
- func GetDisks(syStats *systats.SyStats, config *config.Config) []systats.Disk
- func GetMemory(syStats *systats.SyStats) systats.Memory
- func GetNetwork(syStats *systats.SyStats) []systats.Network
- func GetProcessor(syStats *systats.SyStats) systats.CPU
- func GetSwap(syStats *systats.SyStats) systats.Swap
- func GetSystem(syStats *systats.SyStats) systats.System
- func MonitorAsJSON(config *config.Config) string
- type CustomMetric
- type MonitorData
- type Processes
- type Service
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func GetNetwork ¶
GetNetwork returns an array of systats.Network struct with network usage
func GetProcessor ¶
GetProcessor returns a systats.CPU struct with CPU info and usage data
func MonitorAsJSON ¶
MonitorAsJSON returns MonitorData struct as an JSON object
Types ¶
type CustomMetric ¶
type MonitorData ¶
type MonitorData struct { UnixTime string System systats.System Memory systats.Memory Swap systats.Swap Disk []systats.Disk ProcUsage systats.CPU Networks []systats.Network Processes Processes Services []Service ServerId string }
MonitorData holds individual system stats
func Monitor ¶
func Monitor(config *config.Config) MonitorData
Monitor returns MonitorData struct with system stats
type Processes ¶ added in v1.1.1
Processes hold CPU and Memory usage data
func GetProcesses ¶ added in v0.0.10
GetProcesses returns struct with process info
Click to show internal directories.
Click to hide internal directories.