monitor

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadMonitor

type LoadMonitor struct {
	utils.Closable
}

func (*LoadMonitor) GetCounter

func (m *LoadMonitor) GetCounter() interface{}

type Monitor

type Monitor process.Process

func (*Monitor) Closed

func (m *Monitor) Closed() bool

func (*Monitor) GetCounter

func (m *Monitor) GetCounter() interface{}

type NetCounter

type NetCounter struct {
	Rx      uint64 `statsd:"rx,counter"`
	Tx      uint64 `statsd:"tx,counter"`
	RxBytes uint64 `statsd:"rx_bytes,counter"`
	TxBytes uint64 `statsd:"tx_bytes,counter"`
	ErrIn   uint64 `statsd:"err_in,counter"`
	ErrOut  uint64 `statsd:"err_out,counter"`
	DropIn  uint64 `statsd:"drop_in,counter"`
	DropOut uint64 `statsd:"drop_out,counter"`
	FifoIn  uint64 `statsd:"fifo_in,counter"`
	FifoOut uint64 `statsd:"fifo_out,counter"`
}

type NetworkMonitor

type NetworkMonitor struct {
	utils.Closable
	// contains filtered or unexported fields
}

func (*NetworkMonitor) GetCounter

func (m *NetworkMonitor) GetCounter() interface{}

type SysCounter

type SysCounter struct {
	CpuPercent float64 `statsd:"cpu_percent,gauge"`
	Memory     uint64  `statsd:"memory,gauge"` // physical in bytes
}

Jump to

Keyboard shortcuts

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