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

Speed up alerts page by not rendering collapsed details #9005

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

juliusv
Copy link
Member

@juliusv juliusv commented Jun 28, 2021

All this is doing is wrapping the inner alert details display with a
conditional {open && ...}.

This already improves #8548 a
lot for cases where there are many individual firing/pending alert elements
under each alerting rule.

E.g. for a list of 200 rules with ~100 alert elements each, this changed the page
render time from 30 seconds to 1s.

To test it out, try the following config set: https://gist.github.com/juliusv/8def27432bc3e0ea887b0945d64ce22d

Signed-off-by: Julius Volz julius.volz@gmail.com

All this is doing is wrapping the inner alert details display with a
conditional `{open && ...}`.

This already improves #8548 a
lot for cases where there are many individual firing/pending alert elements
under each alerting rule.

E.g. for a list of 200 rules with ~100 alert elements each, this changed the page
render time from 30 seconds to 1s.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
Copy link
Member

@LeviHarrison LeviHarrison left a comment

Choose a reason for hiding this comment

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

I tested and massive speed improvements :)

@juliusv
Copy link
Member Author

juliusv commented Jun 28, 2021

Thanks :)

@juliusv juliusv merged commit 664b391 into main Jun 28, 2021
@juliusv juliusv deleted the speed-up-showing-many-alerts branch June 28, 2021 14:14
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.

None yet

2 participants