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

Enable option "prometheus_start_timeout" to configure the prometheus.service. #398

Open
gmej opened this issue Jul 8, 2024 · 2 comments

Comments

@gmej
Copy link

gmej commented Jul 8, 2024

Enabling this option for the service file is needed so we can tell the service how much to wait before failing the service initialization. I find this useful in my setup, as Prometheus starts on boot but it needs of a NFS mount, and Prometheus startup fails, instead of waiting for that condition to be true.

Also I find this should be something not too complicated, as the option "prometheus_start_timeout" is already present and working.

@gmej
Copy link
Author

gmej commented Jul 8, 2024

In my case, I added these options to the Prometheus.service file:

TimeoutStartSec=600s
RestartSec=5

I realized I needed both options, as only TimeoutStartSec did not solve my problem. Maybe the solution could be completely parse all the options in the service file to variables in the main.yaml file?

@SuperQ
Copy link
Contributor

SuperQ commented Nov 7, 2024

Having a startup timeout is a good idea since it can take quite a while to startup when recovering the WAL.

Prometheus starts on boot but it needs of a NFS mount

FYI, this is explicitly not recommended by the Prometheus documentation.

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