Documentation
¶
Overview ¶
Package monitor samples host metrics once and publishes immutable snapshots.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snapshot ¶
type Snapshot struct {
Time time.Time `json:"time"`
ElapsedSeconds float64 `json:"elapsed_seconds"`
Host *host.InfoStat `json:"host,omitempty"`
CPU []cpu.InfoStat `json:"cpu_info,omitempty"`
CPUUsage []float64 `json:"cpu_usage"`
Load *load.AvgStat `json:"load,omitempty"`
Memory *mem.VirtualMemoryStat `json:"memory,omitempty"`
Swap *mem.SwapMemoryStat `json:"swap,omitempty"`
Disks []Disk `json:"disks"`
DiskIO map[string]disk.IOCountersStat `json:"disk_io,omitempty"`
Interfaces []Interface `json:"interfaces"`
TCP int `json:"tcp"`
UDP int `json:"udp"`
Processes int `json:"processes"`
GPU []GPU `json:"gpu,omitempty"`
Goroutines int `json:"goroutines"`
GoHeap uint64 `json:"go_heap"`
GCCount uint32 `json:"gc_count"`
GCPauseNanos uint64 `json:"gc_pause_nanos"`
Errors map[string]string `json:"errors,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.