Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFreeCommandOutputAsArr ¶
GetFreeCommandOutputAsArr return `free` output
func IsServiceUp ¶
IsServiceUp returns true if service is running
func MonitorAsJSON ¶
Types ¶
type CustomMetric ¶
type Disk ¶
type Disk struct {
FileSystem string
MountPoint string
Type string
Size string
Used string
Free string
PercentageUsed string
Inodes string
IUsed string
IFree string
IPercentageUsed string
Time string
}
Disk struct with disk info
type MonitorData ¶
type MonitorData struct {
UnixTime string
System System
Memory Memory
Swap Swap
Disks []Disk
Processor Processor
ProcUsage ProcessorUsage
Networks []Network
MemoryUsage []Process
CpuUsage []Process
Services []Service
ServerId string
}
func Monitor ¶
func Monitor(config config.Config) MonitorData
type Process ¶
type Process struct {
User string
PID string
CPUUsage string
MemoryUsage string
Command string
Time string
}
Process struct with process info
func GetProcessesSortedByCPU ¶
GetProcessesSortedByCPU returns a Process struct
func GetProcessesSortedByMem ¶
GetProcessesSortedByMem returns a Process struct
type Processor ¶
type Processor struct {
Model string
NoOfCores string
Freq string
Cache string
Temp string
LoadAvg string
Time string
}
Processor struct with processor info
type ProcessorUsage ¶
ProcessorUsage struct with processor usage info
func GetProcessorUsage ¶
func GetProcessorUsage() ProcessorUsage
GetProcessorUsage returns a ProcessorUsage struct
Click to show internal directories.
Click to hide internal directories.