You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However perhaps your real code is different, could it be that you're creating labels that have an unbounded set of possible values? Prometheus client has to keep ahold of every label value it has ever seen, so if you keep passing in different label values (eg: user IDs), memory usage will continue to grow for each new label value. See the Prometheus label documentation:
I find metrics in my celery task will lead to memory leak. And I reproduced this problem issue locally.
It seems to be caused by the
labels
method. PS:prometheus-client==0.17.1
The text was updated successfully, but these errors were encountered: