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
10 lines
417 B
Text
10 lines
417 B
Text
{%- from "prometheus/map.jinja" import relay with context %}
|
|
{%- if relay.get("backends") %}
|
|
{%- set relay_backends = [] %}
|
|
{%- for backend in relay.backends %}
|
|
{%- set address = "%s:%d" | format(backend.host, backend.port) %}
|
|
{%- do relay_backends.append(address) %}
|
|
{%- endfor %}
|
|
PROMETHEUS_RELAY_BACKENDS={{ relay_backends | join(',') }}
|
|
{%- endif %}
|
|
PROMETHEUS_RELAY_BIND_PORT={{ relay.bind.port }}
|