Skip to content

Instantly share code, notes, and snippets.

@JonathanPorta
Last active January 26, 2018 08:07
Show Gist options
  • Save JonathanPorta/639dfaee929833b41d34f70e947b7dcf to your computer and use it in GitHub Desktop.
Save JonathanPorta/639dfaee929833b41d34f70e947b7dcf to your computer and use it in GitHub Desktop.
[Unit]
Description=Ensure that the prometheus process is running
After=network-online.target
[Service]
User=prometheus
Group=prometheus
Restart=always
WorkingDirectory=/opt/prometheus
ExecStart=/opt/prometheus/prometheus --config.file=prometheus.yml
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment