Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing multiple metrics on the first line of tailed file #6289

Merged
merged 2 commits into from
Aug 21, 2019

Conversation

danielnelson
Copy link
Contributor

This is a quick fix for parsing multiple metrics on the first line of a file without breaking the special csv behavior. #6160 will fix this in a better way, but needs changes around performance and reporting errors during construction first.

closes #6138

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@danielnelson danielnelson added area/tail fix pr to fix corresponding bug labels Aug 20, 2019
@danielnelson danielnelson added this to the 1.12.0 milestone Aug 20, 2019
@danielnelson danielnelson force-pushed the fix-multiple-metrics-tail branch from 69d8748 to 244a56a Compare August 21, 2019 00:13
@danielnelson danielnelson force-pushed the fix-multiple-metrics-tail branch from 244a56a to 6c0ab21 Compare August 21, 2019 00:14
}

if m != nil {
metrics = append(metrics, m)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: use metrics = []telegraf.Metric{m}

@danielnelson danielnelson merged commit 8c2b3ad into master Aug 21, 2019
@danielnelson danielnelson deleted the fix-multiple-metrics-tail branch August 21, 2019 23:30
bitcharmer pushed a commit to bitcharmer/telegraf that referenced this pull request Oct 18, 2019
dloucasfx pushed a commit to signalfx/telegraf that referenced this pull request Apr 14, 2020
dloucasfx pushed a commit to signalfx/telegraf that referenced this pull request Apr 14, 2020
…data#6289)

Fix unit test

Signed-off-by: Dani Louca <dlouca@splunk.com>
dloucasfx pushed a commit to signalfx/telegraf that referenced this pull request Apr 14, 2020
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tail fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

json_query not parsing through all entries in the JSON array
2 participants