Skip to content

Commit

Permalink
chore(inputs.vsphere): Improve metric collection error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
DStrand1 committed Mar 3, 2025
1 parent ccf5761 commit 801b989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/vsphere/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ func (e *endpoint) collectResource(ctx context.Context, resourceType string, acc
n, localLatest, err := e.collectChunk(ctx, chunk, res, acc, estInterval)
e.log.Debugf("CollectChunk for %s returned %d metrics", resourceType, n)
if err != nil {
acc.AddError(errors.New("while collecting " + res.name + ": " + err.Error()))
acc.AddError(errors.New("while collecting " + res.name + " for vcenter " + e.url.Host + ": " + err.Error()))
return
}
e.parent.Log.Debugf("CollectChunk for %s returned %d metrics", resourceType, n)
Expand Down

0 comments on commit 801b989

Please sign in to comment.