Add compactor

This commit is contained in:
SebClem 2022-04-30 18:41:05 +02:00
parent 30c5d39efc
commit 888cb17580
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
5 changed files with 590 additions and 402 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
roles/*
!roles/requirements.yml
node_modules
.yarn

1
.yarnrc.yml Normal file
View File

@ -0,0 +1 @@
nodeLinker: node-modules

View File

@ -76,6 +76,14 @@ loki_table_manager_config:
retention_deletes_enabled: false
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:
- url: "http://{{ loki_listen_address }}:{{ loki_listen_port }}/loki/api/v1/push"

View File

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

977
yarn.lock

File diff suppressed because it is too large Load Diff