Created
August 24, 2017 09:44
-
-
Save RichiH/454fb1b0437f86f6baa8495235248fd1 to your computer and use it in GitHub Desktop.
Prometheus systemd unit file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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