Skip to content

Commit

Permalink
depend on time-sync.target
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
anarcat committed Sep 27, 2023
1 parent 927ccef commit 9a678ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions roles/prometheus/templates/prometheus.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

[Unit]
Description=Prometheus
After=network-online.target
Requires=local-fs.target
After=local-fs.target
After=time-sync.target

[Service]
Restart=on-failure
Expand Down

0 comments on commit 9a678ea

Please sign in to comment.