Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUCollector ¶
type CPUCollector struct{}
CPUCollector collects CPU usage metrics.
func NewCPUCollector ¶
func NewCPUCollector() *CPUCollector
NewCPUCollector returns a new CPUCollector instance.
func (*CPUCollector) Collect ¶
func (c *CPUCollector) Collect() (interface{}, error)
Collect retrieves CPU usage percentages. It waits for one second to sample CPU usage.
type MemoryCollector ¶
type MemoryCollector struct{}
MemoryCollector gathers memory usage metrics.
func NewMemoryCollector ¶
func NewMemoryCollector() *MemoryCollector
NewMemoryCollector creates a new MemoryCollector.
func (*MemoryCollector) Collect ¶
func (m *MemoryCollector) Collect() (interface{}, error)
Collect retrieves virtual memory statistics.
type SystemStatsCollector ¶
type SystemStatsCollector struct{}
SystemStatsCollector collects detailed system stats.
func NewSystemStatsCollector ¶
func NewSystemStatsCollector() *SystemStatsCollector
NewSystemStatsCollector returns a new instance.
func (*SystemStatsCollector) Collect ¶
func (s *SystemStatsCollector) Collect() (interface{}, error)
Collect gathers system statistics and returns a map.
Click to show internal directories.
Click to hide internal directories.