Add markdown documentation for metric collector ibstat_perfquery

This commit is contained in:
Holger Obermaier
2022-02-07 09:46:19 +01:00
parent 5ac3af895d
commit 79b25ddbee
4 changed files with 41 additions and 25 deletions

View File

@@ -20,7 +20,7 @@ type InfinibandCollectorInfo struct {
LID string // IB local Identifier (LID)
device string // IB device
port string // IB device port
portCounterFiles map[string]string // mapping counter name -> file
portCounterFiles map[string]string // mapping counter name -> sysfs file
tagSet map[string]string // corresponding tag list
}
@@ -34,6 +34,12 @@ type InfinibandCollector struct {
// Init initializes the Infiniband collector by walking through files below IB_BASEPATH
func (m *InfinibandCollector) Init(config json.RawMessage) error {
// Check if already initialized
if !m.init {
return nil
}
var err error
m.name = "InfinibandCollector"
m.setup()