Documentation
¶
Index ¶
Constants ¶
View Source
const BASEDIR = "/sys/class/infiniband/"
BASEDIR - the sysfs entry for infiniband device
View Source
const DEFAULTLUN = 4
DEFAULTLUN -- the number of lun of hca port
Variables ¶
This section is empty.
Functions ¶
func ExtractIBRate ¶
ExtractIBRate --- get a GB rate and number of luns
Types ¶
type IBPort ¶
type IBPort struct { ConfigfsPath string CA string Port string State string PhysState string RateGB int64 SendBytes int64 RecvBytes int64 NowXmitData int64 NowRecvData int64 NowEpoch int64 LastXmitData int64 LastRecvData int64 LastEpoch int64 // contains filtered or unexported fields }
IBPort -- Ports of HCA card
type Infiniband2 ¶
type Infiniband2 struct { IgnorDownPort bool `toml:"ignor_down_port"` ScanAfterIntervals int64 `toml:"scan_after_intervals"` ScanIntervalCounter int64 // contains filtered or unexported fields }
Infiniband2 --
func (*Infiniband2) Description ¶
func (s *Infiniband2) Description() string
Description -- this is necessary for telegraf plugins framework
func (*Infiniband2) FlushOut ¶
func (s *Infiniband2) FlushOut(acc *telegraf.Accumulator, port *IBPort)
FlushOut -- call Accumulator to output
func (*Infiniband2) Gather ¶
func (s *Infiniband2) Gather(acc telegraf.Accumulator) error
Gather -- invoked by telegraf at intervals
Click to show internal directories.
Click to hide internal directories.