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

Loki: Improve the display of loki query stats #63623

Merged
merged 19 commits into from Mar 16, 2023

Conversation

gwdawson
Copy link
Member

@gwdawson gwdawson commented Feb 23, 2023

What is this feature?

  • builder/code refresh stats on timerange change.
  • code refresh stats on type.

Why do we need this feature?
fixed some bugs and updates stats on type

Who is this feature for?
...

Which issue(s) does this PR fix?:
Fixes #63343

Special notes for your reviewer:
to test refresh stats on timerange change, create a query in builder or code then edit the timerange and you should see the stats update.

to test refresh stats on type, create a query in the code editor, if the query is valid the stats will update after 1 second of no typing.

@gwdawson gwdawson self-assigned this Feb 23, 2023
@gwdawson gwdawson added this to the 9.5.0 milestone Feb 23, 2023
@gwdawson gwdawson marked this pull request as ready for review February 23, 2023 15:28
@gwdawson gwdawson requested a review from a team as a code owner February 23, 2023 15:28
@gwdawson gwdawson added add to changelog no-backport Skip backport of PR labels Feb 23, 2023
@gwdawson
Copy link
Member Author

@grafana/observability-logs functionality works as expected just need to fix some tests, can still be reviewed.

@github-actions
Copy link
Contributor

Backend code coverage report for PR #63623
No changes

@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2023

Frontend code coverage report for PR #63623

Plugin Main PR Difference
loki 83.71% 83.6% -.11%

Copy link
Member

@ivanahuckova ivanahuckova left a comment

Choose a reason for hiding this comment

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

Nice! Left some feedback bellow. Also could you please add some tests that will ensure that this fixed functionality works and that we won't break it in the future. 🙂

Copy link
Member

@ivanahuckova ivanahuckova left a comment

Choose a reason for hiding this comment

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

I've left couple of comments bellow. Let me know what do you think, mainly about moving running of getStats to LokiField instead of LokiOptions.

@gwdawson gwdawson requested a review from a team as a code owner March 6, 2023 12:55
@gwdawson gwdawson removed the request for review from a team March 6, 2023 12:56
Copy link
Contributor

@matyax matyax left a comment

Choose a reason for hiding this comment

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

Added a comment about making a prop possibly undefined.

@matyax
Copy link
Contributor

matyax commented Mar 6, 2023

I think we might want to prioritize this task, given the upcoming delivery dates.

Edit: with "delivery date" I mean query splitting. We may want to have this ready to ship along with that.

@gwdawson gwdawson requested a review from matyax March 9, 2023 11:25
Copy link
Contributor

@svennergr svennergr left a comment

Choose a reason for hiding this comment

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

Added one last comment, but it's working good! Great work! 🚀

@gwdawson gwdawson requested a review from svennergr March 14, 2023 12:35
Copy link
Contributor

@svennergr svennergr left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@matyax matyax left a comment

Choose a reason for hiding this comment

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

Let's gooo.

@gwdawson gwdawson merged commit c16280a into main Mar 16, 2023
7 checks passed
@gwdawson gwdawson deleted the gareth/increase-transparency-improvements branch March 16, 2023 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loki: Refreshing query stats
5 participants