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
Loki: Add hint for pipeline error to query builder #52134
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ivanahuckova
added
type/feature-request
datasource/Loki
add to changelog
no-backport
Skip backport of PR
labels
Jul 13, 2022
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/25961 |
joshhunt
reviewed
Jul 13, 2022
svennergr
approved these changes
Jul 13, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few nits but in total LGTM!
ivanahuckova
commented
Jul 13, 2022
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/26024 |
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/26041 |
bohandley
pushed a commit
that referenced
this pull request
Jul 14, 2022
* WIP * Update * Add tests * Fix lint/betterer errors * Update public/app/plugins/datasource/loki/addToQuery.ts * Update copy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
add to changelog
area/frontend
datasource/Loki
enterprise-failed
no-backport
Skip backport of PR
type/feature-request
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
This PR adds hint for when sampled log lines have
__error__
label (__error__
label is created in loki when parsing error happens) AND query has exactly 1 parser AND there is no__error__
label filtering.Which issue(s) this PR fixes:
Part of #51980
Special notes for your reviewer:
To test this, I recommend running tns app:
git clone https://github.com/grafana/tns.git
cd tns/production/docker-compose/
docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions
docker-compose up -d
And then in grafana run query
{compose_project="docker-compose"}
in query builder. You might need to temporarily update limitmaxLines: 50,
inpublic/app/plugins/datasource/loki/datasource.ts
to 100, because of the shape of incoming logs.hints.mov