itamae/cookbooks/prometheus/files/etc/systemd/system/prometheus.service

14 lines
329 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Prometheus Server
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target
[Service]
Restart=on-failure
ExecStart=/usr/local/bin/prometheus \
--config.file=/etc/prometheus.d/prometheus.yml \
--storage.tsdb.path=/var/opt/prometheus/
[Install]
WantedBy=multi-user.target