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
436 B
Text
18 lines
436 B
Text
{%- from "prometheus/map.jinja" import relay with context %}
|
|
[Unit]
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=root
|
|
EnvironmentFile=-/etc/default/prometheus-relay
|
|
ExecStart=/usr/bin/prometheus-relay \
|
|
-port=${PROMETHEUS_RELAY_BIND_PORT} \
|
|
{%- if relay.get("backends") %}
|
|
-urls=${PROMETHEUS_RELAY_BACKENDS}
|
|
{%- endif %}
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=on-failure
|
|
KillMode=control-group
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|