diff --git a/compose-debug.yml b/compose-debug.yml index 8dccc75d..fada4563 100644 --- a/compose-debug.yml +++ b/compose-debug.yml @@ -36,7 +36,7 @@ services: command: -config.file=/etc/loki/loki.yml volumes: - ./loki/loki.yml:/etc/loki/loki.yml - - ./data/loki:/opt/loki + - ./data/loki:/loki restart: unless-stopped charon: diff --git a/loki/loki.yml b/loki/loki.yml index 1bdf3684..9c70d07f 100644 --- a/loki/loki.yml +++ b/loki/loki.yml @@ -3,45 +3,39 @@ 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 - wal: - enabled: false - chunk_idle_period: 5m - chunk_retain_period: 30s - max_transfer_retries: 0 +common: + path_prefix: /loki + storage: + filesystem: + chunks_directory: /loki/chunks + rules_directory: /loki/rules + replication_factor: 1 + ring: + kvstore: + store: inmemory schema_config: configs: - - from: 2022-01-01 - store: boltdb + - from: 2020-10-24 + store: tsdb object_store: filesystem - schema: v11 + schema: v13 index: prefix: index_ - period: 168h - -storage_config: - boltdb: - directory: /opt/loki/index - - filesystem: - directory: /opt/loki/chunks + period: 24h limits_config: - enforce_metric_name: false reject_old_samples: true reject_old_samples_max_age: 168h + allow_structured_metadata: false -chunk_store_config: - max_look_back_period: 0s +ingester: + chunk_idle_period: 1h + max_chunk_age: 1h + chunk_retain_period: 30s -table_manager: - retention_deletes_enabled: false - retention_period: 0s +compactor: + working_directory: /loki/compactor + retention_enabled: true + retention_delete_delay: 2h + delete_request_store: filesystem