Deploy `/etc/systemd/system/prometheus.service`.

This commit is contained in:
Kazuhiro MUSASHI 2023-02-11 21:09:57 +09:00
parent 8efef5000c
commit b28477137c
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
[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