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

Add size for each log file #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rewiko
Copy link
Owner

@rewiko rewiko commented Nov 4, 2019

Which issue(s) this PR fixes:
As part of #1, log throttling would be doable and that will throttle the log after X logs per second, logs will be delayed.

What this PR does / why we need it:
This PR will add the size of the log which can be exported by fluent-plugin-prometheus-pr. We will be able to monitor the delay by comparing fluentd_tail_file_position and fluentd_tail_file_size.

Docs Changes:

Release Note:

Remove debug log

Add size file

Update size parameter FilePositionEntry

adding logs

update pos file function in memory

add debug size log

update file size from pos_file read

Save size inside the file and keep it backward compatible

Revert "Add log throttling per file"

This reverts commit f5bb69b.

Remove debug log
@rewiko rewiko changed the title Add size of each log file Add size for each log file Nov 4, 2019
@rewiko rewiko force-pushed the add-size-of-each-log-file branch 2 times, most recently from 9321337 to 427ea1f Compare November 4, 2019 08:54
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.

1 participant