Skip to content

Instantly share code, notes, and snippets.

@RichiH
Created August 24, 2017 09:44
Show Gist options
  • Select an option

  • Save RichiH/454fb1b0437f86f6baa8495235248fd1 to your computer and use it in GitHub Desktop.

Select an option

Save RichiH/454fb1b0437f86f6baa8495235248fd1 to your computer and use it in GitHub Desktop.
Prometheus systemd unit file
[Unit]
Description=Prometheus
After=syslog.target network.target
[Service]
User=prometheus
TimeoutStopSec=1800
LimitNOFILE=120000
ExecStart=/home/prometheus/bin/prometheus/prometheus \
-config.file /home/prometheus/configs/prometheus.yml \
-storage.local.path /home/prometheus/data/ \
-storage.local.target-heap-size=42949672960 \
-storage.local.retention=817600h \
-storage.local.chunk-encoding-version=2 \
-alertmanager.url=http://localhost:9093
WorkingDirectory=/home/gocode/src/github.com/prometheus/prometheus/
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment