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

Added last read/wrote timestamp metrics to loki.write #5699

Merged
merged 6 commits into from
Nov 7, 2023

Conversation

thepalbi
Copy link
Contributor

@thepalbi thepalbi commented Nov 2, 2023

PR Description

This PR adds two new metrics to the WAL enabled loki.write:

  • last written timestamp
  • last read timestamp

This will allow us to track the delay between the WAL writing and reading side, in actual time from the entries flowing through the WAL.

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@thepalbi thepalbi requested a review from a team as a code owner November 2, 2023 22:42
@thepalbi thepalbi requested a review from mattdurham November 2, 2023 22:42
@thepalbi thepalbi force-pushed the pablo/loki-write-more-metrics branch from b019fbe to d12d812 Compare November 3, 2023 16:22
Copy link
Member

@tpaschalis tpaschalis left a comment

Choose a reason for hiding this comment

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

LGTM with a small nit

@thepalbi
Copy link
Contributor Author

thepalbi commented Nov 7, 2023

@tpaschalis all fixed

@tpaschalis tpaschalis enabled auto-merge (squash) November 7, 2023 13:16
@tpaschalis tpaschalis merged commit b9787dc into main Nov 7, 2023
8 checks passed
@tpaschalis tpaschalis deleted the pablo/loki-write-more-metrics branch November 7, 2023 13:21
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants