diff --git a/core/loki-config.yml b/core/loki-config.yml index f5171c5..4f52b4b 100644 --- a/core/loki-config.yml +++ b/core/loki-config.yml @@ -3,31 +3,27 @@ auth_enabled: false server: http_listen_port: 3100 -ingester: - lifecycler: - address: 127.0.0.1 - ring: - kvstore: - store: inmemory - replication_factor: 1 - final_sleep: 0s - chunk_idle_period: 5m - chunk_retain_period: 30s - max_transfer_retries: 0 +common: + ring: + instance_addr: 127.0.0.1 + kvstore: + store: inmemory + replication_factor: 1 + path_prefix: /tmp/loki schema_config: configs: - - from: 2018-04-15 - store: boltdb + - from: 2020-05-15 + store: boltdb-shipper object_store: filesystem schema: v11 index: prefix: index_ - period: 168h + period: 24h storage_config: - boltdb: - directory: {{ env "NOMAD_TASK_DIR" }}/index + boltdb_shipper: + active_index_directory: {{ env "NOMAD_TASK_DIR" }}/index filesystem: directory: {{ env "NOMAD_TASK_DIR" }}/chunks @@ -38,8 +34,8 @@ limits_config: reject_old_samples_max_age: 168h chunk_store_config: - max_look_back_period: 0s + max_look_back_period: 168h table_manager: - retention_deletes_enabled: false - retention_period: 0s + retention_deletes_enabled: true + retention_period: 168h diff --git a/core/loki.tf b/core/loki.tf index 6af07e3..a6d2a6b 100644 --- a/core/loki.tf +++ b/core/loki.tf @@ -3,7 +3,7 @@ module "loki" { detach = false name = "loki" - image = "grafana/loki:2.2.1" + image = "grafana/loki:2.8.7" args = ["--config.file=$${NOMAD_TASK_DIR}/loki-config.yml"] service_port = 3100