Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Wait for local file systems before starting prometheus (#317)
Browse files Browse the repository at this point in the history
In case prometheus data is stored on mounted volume, wait on it before
starting process.

This change also makes sure that prometheus is stopped to allow safe
unmount volume during shutdown.

[patch] release

Co-authored-by: Bartosz Cisek <bartosz.cisek@ebury.com>
  • Loading branch information
bartoszcisek and bartoszcisek authored Nov 4, 2020
1 parent 3c94c81 commit f8f011e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/prometheus.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
[Unit]
Description=Prometheus
After=network-online.target
Requires=local-fs.target
After=local-fs.target

[Service]
Type=simple
Expand Down

0 comments on commit f8f011e

Please sign in to comment.