collectors

package
v0.0.0-...-8cead45 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ci CollectorInterface)

Types

type CollectionManager

type CollectionManager struct {
	Collectors map[string]CollectorInterface
}

func (*CollectionManager) Add

func (*CollectionManager) Empty

func (cm *CollectionManager) Empty() bool

func (*CollectionManager) Find

func (*CollectionManager) Start

func (cm *CollectionManager) Start(names ...string)

type CollectorInterface

type CollectorInterface interface {
	Name() string
	Description() string
	Gather() (types.MetricsSection, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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