5e9fb1d347
Now it is able to install proemtheus on host and use it to scrape data from other prometheuses. Prod-related: PROD-17350 Change-Id: I11d65920c0e9b685dead22a5551521fa15d13f25
18 lines
509 B
Text
18 lines
509 B
Text
[Unit]
|
|
Description=Prometheus Server
|
|
Documentation=https://prometheus.io/docs/introduction/overview/
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
EnvironmentFile=-/etc/default/prometheus
|
|
User=root
|
|
Group=root
|
|
Restart=on-failure
|
|
ExecStart=/usr/bin/prometheus \
|
|
--web.listen-address=${PROMETHEUS_BIND_ADDRESS} \
|
|
--config.file=${PROMETHEUS_CONFIG_DIR}/prometheus.yml \
|
|
--storage.tsdb.path=${PROMETHEUS_DATA_DIR} \
|
|
--storage.tsdb.retention=${PROMETHEUS_STORAGE_LOCAL_RETENTION}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|