nodeexporter

package
v0.0.0-...-30ec57c Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeMetrics

type NodeMetrics struct {
	Load1                float64
	Load5                float64
	Load15               float64
	FilesystemAvailBytes uint64
	FilesystemSizeBytes  uint64
	MemoryFreeBytes      uint64
	MemoryTotalBytes     uint64
	MemorySwapFreeBytes  uint64
	MemorySwapTotalBytes uint64
	BootTimeSeconds      uint64
	TimeSeconds          uint64
	NetworkReceiveBytes  uint64
	NetworkTransmitBytes uint64
	Hostname             string
	Kernel               string
}

func GetNodeMetrics

func GetNodeMetrics(ctx context.Context, u string) (*NodeMetrics, error)

func ParseNodeMetrics

func ParseNodeMetrics(r io.Reader, fmt expfmt.Format) (nodemetrics *NodeMetrics, err error)

func (*NodeMetrics) Uptime

func (m *NodeMetrics) Uptime() string

Jump to

Keyboard shortcuts

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