collectors

package
v0.0.0-...-4878133 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsCollector

type MetricsCollector interface {
	Run() error
}

MetricsCollector defines an interface that the various collectors must implement in order to collector, process, and present metrics to the caller or client. All collectors must use the MetricsMessage structure to receive metrics, and they must implement their own struct for handling configuration.

Further, although it isn't defined in this interface, it is recommended that collectors also create their own MetricsMessage channel to be used both in the implementation (e.g., &collectorImpl{}) and to be returned to the caller. Doing so ensures that we don't end up implementing too much in main(), instead opting to push the complexity down into the individual collectors.

type NodeInfo

type NodeInfo struct {
	IPAddress string
	MesosID   string
	ClusterID string
	Hostname  string
}

NodeInfo represents information about the node, such as the IP address, hostname, Mesos ID, and the cluster ID that the node belongs to.

Directories

Path Synopsis
mesos

Jump to

Keyboard shortcuts

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