Fix sensor read error stops reporting of all sensors in temp input (#5941)

This commit is contained in:
Marc Venturini
2019-06-15 02:27:24 +08:00
committed by Daniel Nelson
parent d260437318
commit 4b6e791908
8 changed files with 18 additions and 14 deletions

View File

@@ -226,7 +226,6 @@ func (p *Procstat) addMetric(proc Process, acc telegraf.Accumulator) {
fields[prefix+"cpu_time_irq"] = cpu_time.Irq
fields[prefix+"cpu_time_soft_irq"] = cpu_time.Softirq
fields[prefix+"cpu_time_steal"] = cpu_time.Steal
fields[prefix+"cpu_time_stolen"] = cpu_time.Stolen
fields[prefix+"cpu_time_guest"] = cpu_time.Guest
fields[prefix+"cpu_time_guest_nice"] = cpu_time.GuestNice
}