Retention period for loki

  Kiến thức lập trình

I want to know that whether the below loki congfig file deletes my nginx logs after 48h!

Code here:

auth_enabled: false

server:
  http_listen_port: 3100
  grpc_listen_port: 9096

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

schema_config:
  configs:
    - from: 2020-10-24
      store: boltdb-shipper
      object_store: filesystem
      schema: v11
      index:
        prefix: index_
        period: 24h

table_manager:
  retention_deletes_enabled: true
  retention_period: 48h  

ruler:
  alertmanager_url: http://host_ip:9093

I tried running this, im a fresher working on monitring but didn’t undestand the difference between table manager and compactor so i need to clarify this.

LEAVE A COMMENT