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

compact: Avoid breaking the json log with series string #2104

Merged
merged 1 commit into from
Feb 8, 2020
Merged

compact: Avoid breaking the json log with series string #2104

merged 1 commit into from
Feb 8, 2020

Conversation

anas-aso
Copy link
Contributor

@anas-aso anas-aso commented Feb 6, 2020

compact log line when encountering an empty chunk should be a valid JSON to avoid breaking logs parsing.
Otherwise you endup in something like this (Kibana) :
Screenshot 2020-02-06 at 2 02 50 PM

Changes

label set is printed in the log as a single string when compact encounters empty chunks.

Verification

get proper JSON log line

@anas-aso anas-aso requested a review from bwplotka February 7, 2020 06:20
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks! 👍

@bwplotka bwplotka merged commit 5a93f51 into thanos-io:master Feb 8, 2020
vankop pushed a commit to monitoring-tools/thanos that referenced this pull request Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants