2020-04-20 02:21:00 +02:00
|
|
|
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
|
|
|
{% if promtail_server_config != [] %}
|
|
|
|
server:
|
|
|
|
{{ promtail_server_config | to_nice_yaml(indent=2) | indent(2, False) }}
|
|
|
|
{% endif %}
|
2020-04-22 00:54:44 +02:00
|
|
|
{% if promtail_positions_config != [] %}
|
|
|
|
positions:
|
|
|
|
{{ promtail_positions_config | to_nice_yaml(indent=2) | indent(2, False) }}
|
|
|
|
{% endif %}
|
2020-04-20 02:21:00 +02:00
|
|
|
{% if promtail_client_config != [] %}
|
|
|
|
clients:
|
|
|
|
{{ promtail_client_config | to_nice_yaml(indent=2) | indent(2, False) }}
|
|
|
|
{% endif %}
|
|
|
|
{% if promtail_scrape_config != [] %}
|
|
|
|
scrape_configs:
|
|
|
|
{{ promtail_scrape_config | to_nice_yaml(indent=2) | indent(2, False) }}
|
|
|
|
{% endif %}
|
|
|
|
{% if promtail_target_config != [] %}
|
|
|
|
target_config:
|
|
|
|
{{ promtail_target_config | to_nice_yaml(indent=2) | indent(2, False) }}
|
|
|
|
{% endif %}
|