diff --git a/plugins/inputs/win_perf_counters/win_perf_counters.go b/plugins/inputs/win_perf_counters/win_perf_counters.go index 763ccc1ba..4ad7f2fd4 100644 --- a/plugins/inputs/win_perf_counters/win_perf_counters.go +++ b/plugins/inputs/win_perf_counters/win_perf_counters.go @@ -351,7 +351,7 @@ func (m *Win_PerfCounters) Gather(acc telegraf.Accumulator) error { if !isKnownCounterDataError(err) { return fmt.Errorf("error while getting value for counter %s: %v", metric.counterPath, err) } - m.Log.Warnf("error while getting value for counter %q, will skip metric: %v", metric.counterPath, err) + m.Log.Warnf("error while getting value for counter %q, instance: %s, will skip metric: %v", metric.counterPath, metric.instance, err) continue } addCounterMeasurement(metric, metric.instance, value, collectFields) @@ -367,7 +367,7 @@ func (m *Win_PerfCounters) Gather(acc telegraf.Accumulator) error { if !isKnownCounterDataError(err) { return fmt.Errorf("error while getting value for counter %s: %v", metric.counterPath, err) } - m.Log.Warnf("error while getting value for counter %q, will skip metric: %v", metric.counterPath, err) + m.Log.Warnf("error while getting value for counter %q, instance: %s, will skip metric: %v", metric.counterPath, metric.instance, err) continue } for _, cValue := range counterValues {