Deploy `/etc/systemd/system/prometheus.service`.
This commit is contained in:
parent
8efef5000c
commit
b28477137c
|
@ -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
|
Loading…
Reference in New Issue