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 (*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.
Click to show internal directories.
Click to hide internal directories.