load

package
v1.110.5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiskIO

func DiskIO(logger *zap.Logger, pid int32) monkit.StatSource

DiskIO creates a monkit StatSource that can yield disk IO statistics about the device underlying the specified device.

Types

type Stats

type Stats struct {
	ReadCount  uint64
	WriteCount uint64
	ReadBytes  uint64
	WriteBytes uint64
}

Stats represents cumulative counts of read/write operations, read/write bytes, and time spent doing reads and writes on a particular block device.

func (*Stats) Get

func (s *Stats) Get(pid int32) error

Get collects I/O statistics for the current process (if implemented in gopsutil).

Jump to

Keyboard shortcuts

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