-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Pipeline stages should support dropping labels #2421
Labels
help wanted
We would love help on these issues. Please come help us!
Comments
slim-bean
added
the
help wanted
We would love help on these issues. Please come help us!
label
Jul 25, 2020
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
rsteneteg
added a commit
to rsteneteg/loki
that referenced
this issue
Aug 28, 2020
…o move unbound labels into the log line and dropping the label, fixes grafana#2421 Signed-off-by: Roger Steneteg <rsteneteg@ea.com>
2 tasks
stale
bot
removed
the
stale
A stale issue or PR that will automatically be closed.
label
Sep 1, 2020
cyriltovena
pushed a commit
that referenced
this issue
Sep 10, 2020
* adding pipeline stage for dropping labels, our use case for this is to move unbound labels into the log line and dropping the label, fixes #2421 Signed-off-by: Roger Steneteg <rsteneteg@ea.com> * Update docs/sources/clients/promtail/stages/labeldrop.md Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/clients/promtail/stages/_index.md Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * fixed inconsistent naming, removed unused logger in the labeldrop stage Signed-off-by: Roger Steneteg <rsteneteg@ea.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Several use cases have been presented for removing labels from a stream, the primary case is removing the
filename
label which Promtail automatically appends to every stream after it derives it from the__path__
label.In some cases this information is superfluous and it would be nice to be able to remove it.
Rather than just special casing this label I think a
label_drop
pipeline stage (name alternatives welcome :) ) would generally be useful and should be added.The text was updated successfully, but these errors were encountered: