linux

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUUsageGenerator added in v0.14.1

type CPUUsageGenerator struct {
	Interval time.Duration
}

CPUUsageGenerator generates CPU metric values

func (*CPUUsageGenerator) Generate added in v0.14.1

func (g *CPUUsageGenerator) Generate() (metrics.Values, error)

Generate CPU metric values

type DiskGenerator

type DiskGenerator struct {
	Interval      time.Duration
	UseMountpoint bool
}

DiskGenerator XXX

func (*DiskGenerator) Generate

func (g *DiskGenerator) Generate() (metrics.Values, error)

Generate XXX

type MemoryGenerator

type MemoryGenerator struct {
}

MemoryGenerator collect memory usage

`memory.{metric}`: using memory size[KiB] retrieved from /proc/meminfo

metric = "total", "free", "buffers", "cached", "active", "inactive", "swap_cached", "swap_total", "swap_free"

Metrics "used" is calculated here like (total - free - buffers - cached) for ease. This calculation may be going to be done in server side in the future.

graph: stacks `memory.{metric}`

func (*MemoryGenerator) Generate

func (g *MemoryGenerator) Generate() (metrics.Values, error)

Generate memory values

Jump to

Keyboard shortcuts

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