auth_enabled: false

server:
  http_listen_port: 3100
  grpc_listen_port: 9096

common:
  instance_addr: 127.0.0.1
  path_prefix: /loki
  storage:
    filesystem:
      chunks_directory: /loki/chunks
      rules_directory: /loki/rules
  replication_factor: 1
  ring:
    kvstore:
      store: inmemory

schema_config:
  configs:
    - from: 2024-01-01
      store: tsdb
      object_store: filesystem
      schema: v13
      index:
        prefix: index_
        period: 24h

query_range:
  results_cache:
    cache:
      embedded_cache:
        enabled: true
        max_size_mb: 100

ruler:
  alertmanager_url: http://localhost:9093

# =========================================================
# RETENTION + DELETE PARA LOKI 3.0.0
# =========================================================
compactor:
  retention_enabled: true
  compaction_interval: 5m
  delete_request_store: filesystem   # <=== OBRIGATÓRIO

limits_config:
  retention_period: 168h             # 7 dias
  deletion_mode: filter-and-delete   # <=== substitui allow_deletes