ansible-loki-role/templates/loki.yml.j2

48 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-04-19 22:28:06 +02:00
#jinja2: trim_blocks: True, lstrip_blocks: True
{{ ansible_managed | comment }}
# https://github.com/grafana/loki/blob/master/docs/configuration/README.md#configuration-file-reference
{% if loki_target != "" %}
target: {{ loki_target }}
{% endif %}}
{% if loki_auth_enabled %}
auth_enabled: {{ loki_auth_enabled }}
{% endif %}}
{% if loki_server_config != [] %}
server: {{ loki_server_config }}
{% endif %}}
{% if loki_distributor_config != [] %}
distributor: {{ loki_distributor_config }}
{% endif %}}
{% if loki_querier_config != [] %}
querier: {{ loki_querier_config }}
{% endif %}}
{% if loki_ingester_client_config != [] %}
ingester_client: {{ loki_ingester_client_config }}
{% endif %}}
{% if loki_ingester_config != [] %}
ingester: {{ loki_ingester_config }}
{% endif %}}
{% if loki_storage_config != [] %}
storage_config: {{ loki_storage_config }}
{% endif %}}
{% if loki_chunk_store_config != [] %}
chunk_store_config: {{ loki_chunk_store_config }}
{% endif %}}
{% if loki_schema_config != [] %}
schema_config: {{ loki_schema_config }}
{% endif %}}
{% if loki_limits_config != [] %}
limits_config: {{ loki_limits_config }}
{% endif %}}
{% if loki_frontend_worker_config != [] %}
frontend_worker_config: {{ loki_frontend_worker_config }}
{% endif %}}
{% if loki_table_manager_config != [] %}
table_manager_config: {{ loki_table_manager_config }}
{% endif %}}
{% if loki_runtime_config != [] %}
runtime_config: {{ loki_runtime_config }}
{% endif %}}