fix: remove duplicate addition of fields (#10478)

This commit is contained in:
R290 2022-01-20 21:38:58 +01:00 committed by GitHub
parent 83ab2b8bb5
commit 578fe8bd5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -603,7 +603,6 @@ func (o *OpcUA) Gather(acc telegraf.Accumulator) error {
fields[o.nodeData[i].TagName] = o.nodeData[i].Value
fields["Quality"] = strings.TrimSpace(fmt.Sprint(o.nodeData[i].Quality))
acc.AddFields(n.metricName, fields, tags)
switch o.Timestamp {
case "server":