metrics

package
v0.0.0-...-b1d97f5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCpuIdleTime

func GetCpuIdleTime() (float64, error)

func GetCpuRequest

func GetCpuRequest() float64

func GetDProcessNum

func GetDProcessNum() (int, error)

func GetFileDescriptor

func GetFileDescriptor() float64

func GetFreeMemory

func GetFreeMemory() (float64, error)

func GetLoad5

func GetLoad5() (float64, error)

func GetMemRequest

func GetMemRequest() float64

func GetPodNum

func GetPodNum() float64

func GetProcessNum

func GetProcessNum() (int, error)

func GetZProcessNum

func GetZProcessNum() (int, error)

Types

type BandWidth

type BandWidth struct {
	IPAddress          string
	NetworkInterface   string
	NetworkReceiveRate float64
	NetworkSendRate    float64
}

func GetBandWidth

func GetBandWidth() []BandWidth

type DeviceInfo

type DeviceInfo struct {
	Name      string
	ReadRate  string
	WriteRate string
	Iops      string
}

type DeviceInfoFloat

type DeviceInfoFloat struct {
	NameFloat      string
	ReadRateFloat  float64
	WriteRateFloat float64
	IopsFloat      float64
}

func GetDeviceIo

func GetDeviceIo() []DeviceInfoFloat

type MountPointInodeUsagePercentage

type MountPointInodeUsagePercentage struct {
	MountPoint          string
	InodeFree           int64
	InodeTotal          int64
	InodeFreePercentage float64
}

func GetMountpointInode

func GetMountpointInode() []MountPointInodeUsagePercentage

type MountPointUsagePercentage

type MountPointUsagePercentage struct {
	MountPoint      string
	UsagePercentage float64
}

func GetMountStorage

func GetMountStorage() []MountPointUsagePercentage

Jump to

Keyboard shortcuts

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