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

65 lines
2.1 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 }}
2020-04-20 02:21:00 +02:00
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_auth_enabled %}
auth_enabled: {{ loki_auth_enabled }}
2020-04-20 02:21:00 +02:00
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_server_config != [] %}
2020-04-20 02:21:00 +02:00
server:
{{ loki_server_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_distributor_config != [] %}
2020-04-20 02:21:00 +02:00
distributor:
{{ loki_distributor_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_querier_config != [] %}
2020-04-20 02:21:00 +02:00
querier:
{{ loki_querier_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_ingester_client_config != [] %}
2020-04-20 02:21:00 +02:00
ingester_client:
{{ loki_ingester_client_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_ingester_config != [] %}
2020-04-20 02:21:00 +02:00
ingester:
{{ loki_ingester_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_storage_config != [] %}
2020-04-20 02:21:00 +02:00
storage_config:
{{ loki_storage_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_chunk_store_config != [] %}
2020-04-20 02:21:00 +02:00
chunk_store_config:
{{ loki_chunk_store_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_schema_config != [] %}
2020-04-20 02:21:00 +02:00
schema_config:
{{ loki_schema_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_limits_config != [] %}
2020-04-20 02:21:00 +02:00
limits_config:
{{ loki_limits_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_frontend_worker_config != [] %}
2020-04-20 02:21:00 +02:00
frontend_worker_config:
{{ loki_frontend_worker_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_table_manager_config != [] %}
2020-04-20 02:21:00 +02:00
table_manager:
{{ loki_table_manager_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2020-04-19 22:28:06 +02:00
{% if loki_runtime_config != [] %}
2020-04-20 02:21:00 +02:00
runtime_config:
{{ loki_runtime_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
2022-04-30 18:41:05 +02:00
{% if loki_compactor_config != [] %}
compactor:
{{ loki_compactor_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}