Add compactor

This commit is contained in:
SebClem 2022-04-30 18:41:05 +02:00
parent 30c5d39efc
commit 006f1c3370
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
2 changed files with 13 additions and 0 deletions

View File

@ -76,6 +76,14 @@ loki_table_manager_config:
retention_deletes_enabled: false retention_deletes_enabled: false
retention_period: 0s retention_period: 0s
loki_compactor_config:
working_directory: "{{ loki_storage_dir }}/compactor"
shared_store: filesystem
compaction_interval: 10m
retention_enabled: true
retention_delete_delay: 2h
retention_delete_worker_count: 50
promtail_client_config: promtail_client_config:
- url: "http://{{ loki_listen_address }}:{{ loki_listen_port }}/loki/api/v1/push" - url: "http://{{ loki_listen_address }}:{{ loki_listen_port }}/loki/api/v1/push"

View File

@ -57,3 +57,8 @@ table_manager:
runtime_config: runtime_config:
{{ loki_runtime_config | to_nice_yaml(indent=2) | indent(2, False) }} {{ loki_runtime_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %} {% endif %}
{% if loki_runtime_config != [] %}
compactor:
{{ loki_compactor_config | to_nice_yaml(indent=2) | indent(2, False) }}