Skip to content

Instantly share code, notes, and snippets.

Created March 31, 2017 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/26ab732ff3970ad095c8aef79b2cec75 to your computer and use it in GitHub Desktop.
Save anonymous/26ab732ff3970ad095c8aef79b2cec75 to your computer and use it in GitHub Desktop.
[Unit]
Description=Prometheus Monitoring framework
Wants=basic.target
After=basic.target network.target
[Service]
User=prometheus
Group=prometheus
ExecStart=/opt/prometheus/server/prometheus \
-config.file /opt/prometheus/etc/prometheus.yml \
-storage.local.path=/opt/prometheus/data \
-storage.local.memory-chunks=350000 \
> /var/log/prometheus/server.log 2>&1
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
RestartSec=42s
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment