-
Notifications
You must be signed in to change notification settings - Fork 138
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
feat: improve systemd.service #223
base: main
Are you sure you want to change the base?
Conversation
This is moot: since 2018, Golang defaults to nproc. Signed-off-by: Antoine Beaupré <[email protected]>
Signed-off-by: Antoine Beaupré <[email protected]>
Taken from the Debian package. Signed-off-by: Antoine Beaupré <[email protected]>
Restart=always and on-failure can have dramatic consequences in certain cases, for example on-failure will repeatedly restart Prometheus on a configuration error, filling the disk and "always" will ignore attempts to stop Prometheus from the API. Signed-off-by: Antoine Beaupré <[email protected]>
Signed-off-by: Antoine Beaupré <[email protected]>
Cargo-culted from Debian, but it makes sense that Prometheus should start only after a proper time sync has been achieved, considering how important timestamps are in its architecture. Signed-off-by: Antoine Beaupré <[email protected]>
Signed-off-by: Antoine Beaupré <[email protected]>
e40f5be
to
9a85854
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't rearrange the whole file, it disguises the real changes introduced in the PR.
i have tried to keep that change separate, as a standalone commit, to make it easier to review. for me the final change is easier to review as well, but i guess i can also split out the sorting in a separate PR? or do you object to the sorting/regroup as well? |
This is mostly a sync with the Debian bookworm configuration, but also has a pending fix from https://salsa.debian.org/go-team/packages/prometheus/-/merge_requests/5.
See also #221