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

feat: improve systemd.service #223

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

anarcat
Copy link

@anarcat anarcat commented Sep 27, 2023

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

This is moot: since 2018, Golang defaults to nproc.

Signed-off-by: Antoine Beaupré <anarcat@debian.org>
@anarcat anarcat changed the title improve systemd.service feat: improve systemd.service Sep 27, 2023
@github-actions github-actions bot added the enhancement New feature or request label Sep 27, 2023
Signed-off-by: Antoine Beaupré <anarcat@debian.org>
Taken from the Debian package.

Signed-off-by: Antoine Beaupré <anarcat@debian.org>
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é <anarcat@debian.org>
Signed-off-by: Antoine Beaupré <anarcat@debian.org>
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é <anarcat@debian.org>
Signed-off-by: Antoine Beaupré <anarcat@debian.org>
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Sep 27, 2023
Copy link
Member

@gardar gardar left a 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.

@anarcat
Copy link
Author

anarcat commented Oct 27, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request roles/prometheus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants