Skip to content

Instantly share code, notes, and snippets.

@joonvena
Created February 11, 2021 11:14
Show Gist options
  • Save joonvena/ad8b7cd4d82a1ac5eed03e43f67ef75d to your computer and use it in GitHub Desktop.
Save joonvena/ad8b7cd4d82a1ac5eed03e43f67ef75d to your computer and use it in GitHub Desktop.
[Unit]
Description=Prometheus
Wants=network-online.target
After=network-online.target
[Service]
User=prometheus
Group=prometheus
Type=simple
ExecStart=/usr/local/bin/prometheus \
--config.file /etc/prometheus/prometheus.yml \
--storage.tsdb.path /var/lib/prometheus/ \
--storage.tsdb.min-block-duration=2h \
--storage.tsdb.max-block-duration=2h \
--web.console.templates=/etc/prometheus/consoles \
--web.console.libraries=/etc/prometheus/console_libraries
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment