-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Better enable discovering dropped log lines #2280
Comments
The error message we return to the client is fairly descriptive for these dropped lines: loki/pkg/util/validation/validate.go Lines 15 to 41 in 272a89c
I'm reasonably sure we log this in promtail but I haven't verified this in a while, would be worth doing. |
One area we should improve here is the promtail_mixin in this regard, the dashboard and metrics (as well as alerts) should be updated to give some better visibility here. It's tricky though because of the batched nature of promtail pushes, when we get an error back we don't know how much of the batch succeeded vs failed. Loki doesn't provide that currently and it's not easy to fix this... |
I think this will be greatly helped by LogQL v2's addition of metric extraction + an exported dashboard. That will let us intersect the |
Moreover, I would really love to be able generate metrics, in a
So what I would need to better discover the logs I drop is to defer the drop action at the end of the match block and be able to add I do not know if this is out of the scope of this issue, I guess you will tell me. |
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. |
* Refactor: simplify query batching by removing adaptor function Signed-off-by: Bryan Boreham <[email protected]> * Shortcut DoParallelQueries for single-query case Single query case is very common, e.g. for series-to-chunks lookup in schema v9. Shortcutting avoids the creation of two goroutines and associated data structures, and removes an uninteresting tracing span. Signed-off-by: Bryan Boreham <[email protected]> * Clarify CHANGELOG entry Signed-off-by: Bryan Boreham <[email protected]> * Simplify by using existing Callback type Signed-off-by: Bryan Boreham <[email protected]> * Fix up type signatures where chunk_util.Callback is used Signed-off-by: Bryan Boreham <[email protected]>
Hi, any updates ? |
Finding dropped log lines has proved a problem for many. We've been hesitant to log these at the API level due to cluttering concerns. Currently there are metrics in place for the intersection of
tenant,reason
concerning dropped lines, but we should consider better enabling the use case of finding these.Perhaps we can log the label sets at the promtail level?
The text was updated successfully, but these errors were encountered: