-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Big loading times when using many mapping rules #15
Comments
Hi okorolov, Best reguards |
Yes, we are generating our own IDs and then link them without regex. Attaching an approximate xml template. |
Nice, |
Can you try version 0.4.0 snapshot |
@algenty , Thanks a lot for a quick feedback and a new version! Really impressive! I can confirm that it is working faster now. The page still hangs, but I was able to refresh the panel with 224 metrics in ~12 seconds in Firefox. It is working much slower in Chrome though, but still much faster than it was. ~77 seconds. |
You're welcome, BR, |
i close ticket, more optimization come in next versions |
Hi @okorolov BR |
Hi @algenty Thank you. |
Hi @okorolov BR |
Valid for 0.3.0 version
Greetings,
We are trying to generate somewhat a dynamic dashboard when the whole JSON structure of the panel is generated dynamically.
Think about a panel that displays ~350 nested square panels and each one should be assign with a metric and change the color according to the metric value.
The visual part works well. We are able to generate the xml part that draws squares.
The issue comes when we start linking squares with the metrics.
For each mxgraph object (square panel) we create a rule where we dynamically link a metric from Prometheus to the id of the mxgraph object.
In the end we have ~350 Mapping rules, as expected resulting in the JSON structure for ~16k lines.
Now if we try to load the page with Chrome the loading time might take ~5 minutes to refresh the panel.
In Firefox it takes ~ 40sec - 1minute.
During the loading time one of the CPU cores goes 100% loaded until the page is loaded completely.
Attaching performance recording from Chrome.
Attaching performance from Firefox
We tried to draw everything with draw.io with coloring the panels, but failed to import it dynamically. It seems that URL source for the XML part is still not working.
Could you, please, have a look in terms of optimizing loading speed with multiple items?
Thank you.
The text was updated successfully, but these errors were encountered: