nodeManagerPlugin

package
v0.0.0-...-6c9f386 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//Name is name of plugin
	Name = "node-manager"
	//Version of plugin
	Version = 7
	//Type of plugin
	Type = plugin.CollectorPluginType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IpmiCollector

type IpmiCollector struct {
	IpmiLayer   ipmi.IpmiAL
	Vendor      map[string][]ipmi.RequestDescription
	Hosts       []string
	Mode        string
	Initialized bool
	NSim        int
}

IpmiCollector Plugin class. IpmiLayer specifies interface to perform ipmi commands. NSim is number of requests allowed to be 'in processing' state. Vendor is list of request descriptions. Each of them specifies RAW request data, root path for metrics and format (which also specifies submetrics)

func New

func New() *IpmiCollector

New is simple collector constuctor

func (*IpmiCollector) CollectMetrics

func (ic *IpmiCollector) CollectMetrics(mts []plugin.MetricType) ([]plugin.MetricType, error)

CollectMetrics Performs metric collection. Ipmi request are never duplicated in order to read multiple metrics. Timestamp is set to time when batch processing is complete. Source is hostname returned by operating system.

func (*IpmiCollector) GetConfigPolicy

func (ic *IpmiCollector) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)

GetConfigPolicy creates policy based on global config

func (*IpmiCollector) GetMetricTypes

func (ic *IpmiCollector) GetMetricTypes(cfg plugin.ConfigType) ([]plugin.MetricType, error)

GetMetricTypes Returns list of metrics available for current vendor.

Jump to

Keyboard shortcuts

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