nodeexporter

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

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

Go to latest
Published: Dec 29, 2022 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 Metrics

type Metrics struct {
	Name                    string
	Load1, Load5, Load15    float64
	RootFSAvail, RootFSSize float64
	MemFree, MemTotal       float64
	SwapFree, SwapTotal     float64
	Uptime                  time.Duration
	NetworkIn, NetworkOut   float64
}

func GetMetrics

func GetMetrics(ctx context.Context, u string, interval time.Duration) (metrics Metrics, err error)

Jump to

Keyboard shortcuts

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