Create a gist now

Instantly share code, notes, and snippets.

anonymous /prometheus.service Secret
Created Mar 31, 2017

What would you like to do?
[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