Open htbrandao opened 1 year ago
Best practice would certainly be to have all of the prometheus files in their own folder, especially since the folder is supposed to be wiped between process starts. That said, some additional safety seems reasonable to me.
prometheus-client==0.15.0
The method
collect
onprometheus_client.multiprocess.MultiProcessCollector
reads all .db files, leading to memory issues, as it reads SQLite databases.The issue is on
collect()
method:I believe that there should be some kind of file validation to assure that the file is related to a prometheus metric, e.g: