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: Improve position and size metrics #1515

Merged
merged 1 commit into from
Jan 14, 2020
Merged

Conversation

slim-bean
Copy link
Collaborator

Update these metrics at the same time to avoid the race between them and the two separate timers which update them currently.

This should help prevent the false positives we see on the file_lagging_alert when log files grow very quickly.

Signed-off-by: Edward Welch edward.welch@grafana.com

Copy link
Member

@rfratto rfratto left a comment

Choose a reason for hiding this comment

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

LGTM

@rfratto
Copy link
Member

rfratto commented Jan 13, 2020

LGTM except for the lint failure, anyway

…he race between these two metrics and the two timers that care about position and size

Signed-off-by: Edward Welch <edward.welch@grafana.com>
@slim-bean slim-bean merged commit b43039e into master Jan 14, 2020
@slim-bean slim-bean deleted the synch-tailing-metrics branch January 14, 2020 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants