Skip to content

Commit cc748fd

Browse files
committed
print PerformanceManager HistoricalInterval metric collection level if -debug is present
1 parent a2b0278 commit cc748fd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

vsphere-influxdb.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ func (vcenter *VCenter) Init(config Configuration) error {
165165
return err
166166
}
167167

168+
// Print PerformanceManager interval collection level
169+
if debug {
170+
stdlog.Println("PerformanceManager interval collection level")
171+
spew.Dump(perfmanager.HistoricalInterval)
172+
}
173+
168174
for _, perf := range perfmanager.PerfCounter {
169175
groupinfo := perf.GroupInfo.GetElementDescription()
170176
nameinfo := perf.NameInfo.GetElementDescription()
@@ -186,7 +192,7 @@ func (vcenter *VCenter) Init(config Configuration) error {
186192
metricgroup := MetricGroup{ObjectType: mtype, Metrics: []MetricDef{metricd}}
187193
vcenter.MetricGroups = append(vcenter.MetricGroups, &metricgroup)
188194
}
189-
}
195+
}
190196
}
191197
}
192198
}

0 commit comments

Comments
 (0)