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: allow for customisable stream lag labels #4507

Merged

Conversation

dannykopping
Copy link
Contributor

What this PR does / why we need it:
By default, we use the filename and host labels to determine if a stream is lagging when pushing from Promtail to Loki. This PR introduces the ability to customise this list with a comma-delimited set of labels.

We need this because sometimes the filename label is not available (perhaps it was dropped in a relabel config), and we need to use another label for this purpose.

Which issue(s) this PR fixes:
N/A

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

Danny Kopping added 2 commits October 20, 2021 17:43
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
@pull-request-size pull-request-size bot added size/M and removed size/S labels Oct 20, 2021
@dannykopping dannykopping marked this pull request as ready for review October 20, 2021 20:08
@dannykopping dannykopping requested a review from a team as a code owner October 20, 2021 20:08
Signed-off-by: Danny Kopping <[email protected]>
Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

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

LGTM

@dannykopping dannykopping merged commit 703d68b into grafana:main Oct 21, 2021
@dannykopping dannykopping deleted the dannykopping/customisable-lag-labels branch October 21, 2021 21:11
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.

2 participants