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

Add LimitNOFILE in prometheus.service #105

Merged
merged 1 commit into from
Mar 21, 2021

Conversation

shimulch
Copy link
Contributor

Recently, our Prometheus service stopped scrapping. Upon investigation, we found that Prometheus was logging the following error repeatedly -

dial tcp 127.0.0.1:9093: socket: too many open files

Setting LimitNOFILE to infinity on the prometheus.service solved the issue for us. Since there is no way of setting that in this role, we've opened this PR.

This PR also includes a new configuration variable prometheus_service_limitnofile which can be used to set other values for LimitNOFILE other than infinity.

Copy link

@0x29a 0x29a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ernestas-poskus
Copy link
Owner

hi, thank you for contributing, I will fix CI in few days

@ernestas-poskus
Copy link
Owner

please rebase on master

@shimulch
Copy link
Contributor Author

@ernestas-poskus, Thanks for fixing the CI. This PR is now rebased on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants