loadstat

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package loadstat implements metrics collection related to loadavg

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadStat

type LoadStat struct {
	OneMinute     *metrics.Gauge
	FiveMinute    *metrics.Gauge
	FifteenMinute *metrics.Gauge
	// contains filtered or unexported fields
}

LoadStat represents load average metrics for 1/5/15 Minutes of current operating system. Caution: reflection is used to read this struct to discover names Do not add new types

func New

New starts metrics collection every Step and registers with metricscontext

func (*LoadStat) Collect

func (s *LoadStat) Collect()

Collect populates Loadstat by reading /proc/loadavg

Jump to

Keyboard shortcuts

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