Versions in this module Expand all Collapse all v0 v0.0.1 Mar 24, 2022 Changes in this version + func Execute(name string, arg ...string) ([]byte, error) + type CPUData struct + ID int64 + Name string + State string + type CpuCollector struct + func NewCpuCollector(promLog log.Logger) *CpuCollector + func (c *CpuCollector) Collect(ch chan<- prometheus.Metric) + func (c *CpuCollector) Describe(ch chan<- *prometheus.Desc) + type DiskStatusCollector struct + func NewDiskStatusCollector(promLog log.Logger) *DiskStatusCollector + func (d *DiskStatusCollector) Collect(ch chan<- prometheus.Metric) + func (d *DiskStatusCollector) Describe(ch chan<- *prometheus.Desc) + type NetPing struct + func NewNetPing(promLog log.Logger, mon *mon.Monitor) *NetPing + func (n *NetPing) Collect(ch chan<- prometheus.Metric) + func (n *NetPing) Describe(ch chan<- *prometheus.Desc) + type NicOnline struct + func NewNicOnline(promLog log.Logger) *NicOnline + func (n *NicOnline) Collect(ch chan<- prometheus.Metric) + func (n *NicOnline) Describe(ch chan<- *prometheus.Desc) + type Target struct + Addresses []net.IPAddr + Delay time.Duration + Host string + func (t *Target) AddOrUpdateMonitor(monitor *mon.Monitor) error