Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMonitoringD ¶
func RunMonitoringD(statsCmdGoChan <-chan string)
RunMonitoringD runs the monitoring daemon and continously retrives and calculate system stats.
Types ¶
type SimpleStatsData ¶
SimpleStatsData stores basic stats infomation (CPU and memory)
type Stats ¶
type Stats struct { // stats this process ProcUptime float64 //seconds ProcMemUsedPct float64 ProcCPUAvg systemstat.ProcCPUAverage LastProcCPUSample systemstat.ProcCPUSample `json:"-"` CurProcCPUSample systemstat.ProcCPUSample `json:"-"` // stats for whole system LastCPUSample systemstat.CPUSample `json:"-"` CurCPUSample systemstat.CPUSample `json:"-"` SysCPUAvg systemstat.CPUAverage SysMemK systemstat.MemSample LoadAverage systemstat.LoadAvgSample SysUptime systemstat.UptimeSample // contains filtered or unexported fields }
Stats struct stores the stats
type StatsChannelConfig ¶
type StatsChannelConfig struct {
// contains filtered or unexported fields
}
StatsChannelConfig structure keeps the channel configuration
Click to show internal directories.
Click to hide internal directories.