Skip to content

Commit

Permalink
print PerformanceManager HistoricalInterval metric collection level i…
Browse files Browse the repository at this point in the history
…f -debug is present
  • Loading branch information
sofixa committed Feb 3, 2018
1 parent a2b0278 commit cc748fd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vsphere-influxdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ func (vcenter *VCenter) Init(config Configuration) error {
return err
}

// Print PerformanceManager interval collection level
if debug {
stdlog.Println("PerformanceManager interval collection level")
spew.Dump(perfmanager.HistoricalInterval)
}

for _, perf := range perfmanager.PerfCounter {
groupinfo := perf.GroupInfo.GetElementDescription()
nameinfo := perf.NameInfo.GetElementDescription()
Expand All @@ -186,7 +192,7 @@ func (vcenter *VCenter) Init(config Configuration) error {
metricgroup := MetricGroup{ObjectType: mtype, Metrics: []MetricDef{metricd}}
vcenter.MetricGroups = append(vcenter.MetricGroups, &metricgroup)
}
}
}
}
}
}
Expand Down

0 comments on commit cc748fd

Please sign in to comment.