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

promtail: do not send the last batch - to ingester - if empty #934

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Aug 22, 2019

What this PR does / why we need it:

promtail always send the buffered batch of log entries to the ingester when a client is stopping, but there's no need to send it if the batch is empty.

Checklist

  • Documentation added
  • Tests updated

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@cyriltovena cyriltovena merged commit 22a1bd5 into grafana:master Aug 28, 2019
@pracucci pracucci deleted the promtail-do-not-send-the-last-batch-if-empty branch August 30, 2019 14:34
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.

None yet

2 participants