-
Notifications
You must be signed in to change notification settings - Fork 12k
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 line limit for annotations #31183
Conversation
@@ -124,7 +124,7 @@ export class LokiDatasource extends DataSourceApi<LokiQuery, LokiOptions> { | |||
runInstantQuery = ( | |||
target: LokiQuery, | |||
options: DataQueryRequest<LokiQuery>, | |||
responseListLength: number | |||
responseListLength = 1 |
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.
This is in the same way implemented in runRangeQuery
.
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.
lgtm 🦄
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.
Awesome work! Looks great!
* Add line limit to Annotation query editor * Refactor to keep type consistent
What this PR does / why we need it:
We already had line limit and query type fields in Annotation Loki editor since implementing it in dashboard #29356. But unfortunately, these new fields weren't working (you couldn't input the number and couldn't switch query type). This PR fixes it and implements logic to limit number of logs in annotation queries and choose query type.
loki_annotations_limit.mov
Which issue(s) this PR fixes:
Fixes #21308