Documentation ¶
Index ¶
- func GetFreeCommandOutputAsArr(row int) []string
- func GetLoadAvg() string
- func GetMemory() []string
- func GetSwap() []string
- func IsServiceUp(serviceName string) bool
- func MonitorAsJSON(config config.Config) string
- type CustomMetric
- type Disk
- type MonitorData
- type Network
- type Process
- type Processor
- type Service
- type System
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFreeCommandOutputAsArr ¶
GetFreeCommandOutputAsArr return `free` output
func GetLoadAvg ¶ added in v0.0.10
func GetLoadAvg() string
func IsServiceUp ¶
IsServiceUp returns true if service is running
func MonitorAsJSON ¶
Types ¶
type CustomMetric ¶
type MonitorData ¶
type MonitorData struct { UnixTime string System System Memory []string Swap []string Disk Disk ProcUsage []string Networks Network Processes Process Services []Service ServerId string }
func Monitor ¶
func Monitor(config config.Config) MonitorData
type Process ¶
func GetProcesses ¶ added in v0.0.10
func GetProcesses() Process
GetProcesses returns struct with process info `PID, CPUUsage, MemoryUsage, Command`
type Processor ¶
type Processor struct { Model string NoOfCores string Freq string Cache string Temp string LoadAvg string Time string }
Processor struct with processor info
Click to show internal directories.
Click to hide internal directories.