Fix hang in dns_query plugin (#4841)
This commit is contained in:
@@ -97,6 +97,8 @@ func (d *DnsQuery) Gather(acc telegraf.Accumulator) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
acc.AddFields("dns_query", fields, tags)
|
acc.AddFields("dns_query", fields, tags)
|
||||||
|
|
||||||
|
wg.Done()
|
||||||
}(domain, server)
|
}(domain, server)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user