Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upGUI freezes when querying prometheus instance with large set of exporters. #4883
Comments
This comment has been minimized.
This comment has been minimized.
|
Which page is failing for you exactly? |
simonpasquier
added
the
component/ui
label
Nov 19, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
dabear
commented
Nov 19, 2018
•
|
So I'm working with @raypettersen. It seems the amount of metrics loaded into typeahead is the problem. I changed /js/graph/index.js in-flight in the browser as a test, and now it's smooth again (but obviously this isn't even valid as a workaround): I also did this console.log change before the change mentioned above:
toggling history on/off now produces these debug statements:
|
This comment has been minimized.
This comment has been minimized.
dabear
commented
Nov 20, 2018
•
|
So we've implemented a fix(workaround) in our systems. We assume the prometheus endpoint in During debugging, we discovered that one of our apps had been incorrectly writing unlabeled metrics with dynamic names. This led the allMetrics array variable in static/js/graph/index.js to contain roughly ten thousand unnecessary values. prometheus feeds the typeahead plugin with these metric names. The /graph endpoint seems to freeze consistenly in all browsers when there are 10 thousand or more such entries. |
This comment has been minimized.
This comment has been minimized.
|
Dupe of #2119. Looks like a 10k limit is what we'll want. |




raypettersen commentedNov 19, 2018
•
edited
Bug Report
What did you do?
Upgraded prometheus in environment A, queries work as expected with ~50 exporters.
Updated in environment B, typing one letter in the GUI freezes the browser. Only difference is a larger number of exporters.
What did you expect to see?
Expected to see query work even with a large number of exporters.
Environment
Apache proxy in front of apache. Identical vhosts on QA and PROD.
Linux 3.10.0-693.17.1.el7.x86_64 x86_64
2.4.3
Nothing of interest in logs. Browser just freezes. Nothing in apache or prometheus logs. Worked on version 1.8.3.