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

How to clean PROMETHEUS_ MULTIPROC_ #931

Open
suzumiyashiyu opened this issue Jul 4, 2023 · 1 comment
Open

How to clean PROMETHEUS_ MULTIPROC_ #931

suzumiyashiyu opened this issue Jul 4, 2023 · 1 comment

Comments

@suzumiyashiyu
Copy link

I started multiple processes in the production environment over time 'PROMETHEUS_ MULTIPROC_ ‘ There will be more and more files under dir. How can I establish cleaning rules and the volume of responses returned by the 'metrics' endpoint will eventually exceed the connection time. Any help would be greatly appreciated.

@csmarchbanks
Copy link
Member

That is really up to you and how your system works. Ideally whatever starts your service can delete all of the files inside of the directory before starting your service. Another idea is to create a temporary directory for each service and let the host clean them up when restarting.

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

No branches or pull requests

2 participants