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

Add a limit in the graph code for number of metrics #6100

Closed
wants to merge 6 commits into from

Conversation

dgl
Copy link
Member

@dgl dgl commented Oct 4, 2019

Plus a few optimisations, this improves the situation for #5919.

dgl added 5 commits October 4, 2019 11:34
This avoids running each metric name through several function calls by
doing the fuzzy filtering earlier. It also moves the history
construction into the function rather than multiple places.

Signed-off-by: David Leadbeater <[email protected]>
Browsers start to get slow if this element has more than around 5,000
items in it.

Signed-off-by: David Leadbeater <[email protected]>
Signed-off-by: David Leadbeater <[email protected]>
dgl added a commit to dgl/thanos that referenced this pull request Oct 4, 2019
This imports the changes from the currently unmerged pull request at
prometheus/prometheus#6100.

Signed-off-by: David Leadbeater <[email protected]>
dgl added a commit to dgl/thanos that referenced this pull request Oct 4, 2019
This imports the changes from the currently unmerged pull request at
prometheus/prometheus#6100.

Signed-off-by: David Leadbeater <[email protected]>
Signed-off-by: David Leadbeater <[email protected]>
@GiedriusS
Copy link
Contributor

Any updates on this? On the Thanos side, this kind of code makes sense where we easily have terabytes of data and solves the original problem mentioned here but I also think it's understandable if on the Prometheus' side you don't want to have such logic embedded in the UI's code.

@stale stale bot added the stale label Feb 19, 2020
@brian-brazil
Copy link
Contributor

@juliusv is this still relevant?

@stale stale bot removed the stale label Aug 24, 2020
@stale stale bot added the stale label Oct 23, 2020
@dgl
Copy link
Member Author

dgl commented Nov 26, 2020

Closing, would need updating for the new UI anyway (which mostly seems faster, although the fuzzy matching still seems expensive).

@stale stale bot removed the stale label Nov 26, 2020
@dgl dgl closed this Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants