metricsDisk

package
v0.0.0-...-d6d71be Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

package metricsDisk implements collect harddisk related monitor metrics.

package metricsDisk implements collect harddisk related monitor metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gets

func Gets() (result []datapoint.DataPoint, err error)

Gets returns disk total bytes and used percent from `df -h` and %util from `iostat`(sysstat).

Types

type Df

type Df struct {
	Filesystem  string
	Size        string
	SizeInBytes float64
	UsedPercent uint8
	MountedOn   string
}

func ParseOutputDf

func ParseOutputDf(output string) []Df

type Iostat

type Iostat struct {
	Device string
	Util   uint8
}

func ParseOutputIostat

func ParseOutputIostat(output string) []Iostat

Jump to

Keyboard shortcuts

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