[Unit]
Description=Prometheus
Wants=network-online.target
After=network-online.target
[Service]
#ExecStart=/etc/prometheus/prometheus
ExecStart=/etc/prometheus/prometheus \
--config.file=/etc/prometheus/prometheus.yml \
--storage.tsdb.path=/var/prometheus/data \
--storage.tsdb.retention.time=60d
WorkingDirectory=/etc/prometheus/
Restart=on-failure
User=root
Group=root
[Install]
WantedBy=multi-user.target
Комментариев нет:
Отправить комментарий