system

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 20 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 {
	CPUUtilization  metrics.Gauge
	MemoUtilization metrics.Gauge

	//processes related monitor term
	ProcCPUUtilization  metrics.Gauge
	ProcMemoUtilization metrics.Gauge
	ProcOpenedFilesNum  metrics.Gauge

	ProcNum metrics.Gauge

	//storage related monitor term
	DiskUsedPercentage metrics.Gauge
	DiskFreeSpace      metrics.Gauge

	//file related monitor term
	FileSize metrics.Gauge

	DirectorySize metrics.Gauge
	// contains filtered or unexported fields
}

func PrometheusMetrics

func PrometheusMetrics() *Metrics

PrometheusMetrics returns Metrics build using Prometheus client library.

func (Metrics) RecordMetrics

func (metrics Metrics) RecordMetrics()

func (*Metrics) Start

func (metrics *Metrics) Start(ctx context.CLIContext)

Jump to

Keyboard shortcuts

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