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

UI: rework graph page #2150

Closed

Conversation

vankop
Copy link

@vankop vankop commented Feb 18, 2020

Signed-off-by: Ivan Kopeykin [email protected]

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

  1. Throttling user input,
  2. Add minimum query length == 3,
  3. Maximum amount of suggestions to show from 1000 to 20/30,
  4. Improve performance of fuzzy matching a lot (less allocations, run matching on previous results if possible)

Verification

Tested in our environment with more than 500_000 metrics

/cc @d-ulyanov

@d-ulyanov
Copy link
Contributor

We've fixed UI a bit in our fork, because UI getting stuck always right after opening. For us, this bug is a huge pain, so we decided to fix it and share.

I'm not sure that it's legal to make such changes in Thanos without making it in Prometheus UI first, just curious what do you think @bwplotka ?

@GiedriusS
Copy link
Member

GiedriusS commented Feb 18, 2020

I believe this is yet another attempt at solving prometheus/prometheus#5421 and prometheus/prometheus#5919. We should really probably do this or something similar. It seems like this prometheus/prometheus#6100 upstream never got any attention. Maybe @bwplotka has some new information regarding it? If not, then we should probably really finally do this ourselves, half a year after. However, because there are different implementations which are aiming to solve this problem, we should probably start with a design doc which would weigh pros/cons. Thoughts?

@bwplotka
Copy link
Member

bwplotka commented Feb 19, 2020 via email

@vankop
Copy link
Author

vankop commented Feb 19, 2020

@GiedriusS regarding to prometheus/prometheus#6100 I can also fix initial page freezing in this PR. In upstream it fixed here

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

I think @d-ulyanov since Prometheus does not want to merge fix, we have not much choice (: It's LGTM from me.

Can we rebase?

@d-ulyanov
Copy link
Contributor

@vankop please, rebase and let's merge it 🚀
I'm so happy to work with Thanos UI after that fix :)

@vankop vankop force-pushed the improve-graph-page-search branch from 5ceb97a to 1f57fa9 Compare February 28, 2020 18:49
Throttling user input,
Add minimum query length == 3,
Maximum amount of suggestions to show from 1000 to 20/30,
improve performance of fuzzy matching a lot (less allocations, run matching on previous results if possible)

Signed-off-by: Ivan Kopeykin <[email protected]>
@vankop vankop force-pushed the improve-graph-page-search branch from 1f57fa9 to 6e0409e Compare February 28, 2020 18:56
@stale
Copy link

stale bot commented Mar 29, 2020

This issue/PR has been automatically marked as stale because it has not had recent activity. Please comment on status otherwise the issue will be closed in a week. Thank you for your contributions.

@stale stale bot added the stale label Mar 29, 2020
@GiedriusS
Copy link
Member

Still valid. Seems like there's a conflict :/

@stale
Copy link

stale bot commented May 28, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label May 28, 2020
@stale stale bot closed this Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants