pkg

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(name string, arg ...string) ([]byte, error)

Types

type CPUData

type CPUData struct {
	ID    int64
	Name  string
	State string
}

type CpuCollector

type CpuCollector struct {
	// contains filtered or unexported fields
}

func NewCpuCollector

func NewCpuCollector(promLog log.Logger) *CpuCollector

func (*CpuCollector) Collect

func (c *CpuCollector) Collect(ch chan<- prometheus.Metric)

func (*CpuCollector) Describe

func (c *CpuCollector) Describe(ch chan<- *prometheus.Desc)

type DiskStatusCollector

type DiskStatusCollector struct {
	// contains filtered or unexported fields
}

func NewDiskStatusCollector

func NewDiskStatusCollector(promLog log.Logger) *DiskStatusCollector

func (*DiskStatusCollector) Collect

func (d *DiskStatusCollector) Collect(ch chan<- prometheus.Metric)

func (*DiskStatusCollector) Describe

func (d *DiskStatusCollector) Describe(ch chan<- *prometheus.Desc)

type NetPing

type NetPing struct {
	// contains filtered or unexported fields
}

func NewNetPing

func NewNetPing(promLog log.Logger, mon *mon.Monitor) *NetPing

func (*NetPing) Collect

func (n *NetPing) Collect(ch chan<- prometheus.Metric)

func (*NetPing) Describe

func (n *NetPing) Describe(ch chan<- *prometheus.Desc)

type NicOnline

type NicOnline struct {
	// contains filtered or unexported fields
}

func NewNicOnline

func NewNicOnline(promLog log.Logger) *NicOnline

func (*NicOnline) Collect

func (n *NicOnline) Collect(ch chan<- prometheus.Metric)

func (*NicOnline) Describe

func (n *NicOnline) Describe(ch chan<- *prometheus.Desc)

type Target

type Target struct {
	Host      string
	Addresses []net.IPAddr
	Delay     time.Duration
	// contains filtered or unexported fields
}

func (*Target) AddOrUpdateMonitor

func (t *Target) AddOrUpdateMonitor(monitor *mon.Monitor) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL