Fix win_perf_counters tests (#3068)
This commit is contained in:
committed by
Daniel Nelson
parent
26ca13849d
commit
cb56269c8b
@@ -173,6 +173,10 @@ func (m *Win_PerfCounters) ParseConfig() error {
|
||||
}
|
||||
}
|
||||
|
||||
func (m *Win_PerfCounters) GetParsedItemsForTesting() []*item {
|
||||
return m.itemCache
|
||||
}
|
||||
|
||||
func (m *Win_PerfCounters) Gather(acc telegraf.Accumulator) error {
|
||||
// Parse the config once
|
||||
if !m.configParsed {
|
||||
|
||||
Reference in New Issue
Block a user