psutil

package
v0.0.0-...-a1d7b1b Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Psutil

type Psutil struct {
}

func New

func New() (*Psutil, error)

func (*Psutil) CollectMetrics

func (p *Psutil) CollectMetrics(mts []snap.Metric) ([]snap.Metric, error)

CollectMetrics returns metrics from gopsutil

func (*Psutil) GetMetricTypes

func (p *Psutil) GetMetricTypes(_ snap.Config) ([]snap.Metric, error)

GetMetricTypes returns the metric types exposed by gopsutil

Jump to

Keyboard shortcuts

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