builtins

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package builtins marshals internal (non-plugin) metric collectors (e.g. procfs, wmi, etc.)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builtins

type Builtins struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Builtins defines the internal metric collector manager

func New

func New() (*Builtins, error)

New creates a new builtins manager

func (*Builtins) Flush

func (b *Builtins) Flush(id string) *cgm.Metrics

Flush returns current metrics for all collectors

func (*Builtins) IsBuiltin

func (b *Builtins) IsBuiltin(id string) bool

IsBuiltin determines if an id is a builtin or not

func (*Builtins) Run

func (b *Builtins) Run(id string) error

Run triggers internal collectors to gather metrics

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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