Project

General

Profile

Support #21995 » loki-config.yml

Lucas Di Pentima, 09/10/2024 02:48 PM

 
1
auth_enabled: false
2

    
3
server:
4
  http_listen_port: 3100
5
  grpc_listen_port: 9096
6

    
7
common:
8
  instance_addr: 127.0.0.1
9
  path_prefix: /var/lib/loki
10
  storage:
11
    filesystem:
12
      chunks_directory: /var/lib/loki/chunks
13
      rules_directory: /var/lib/loki/rules
14
  replication_factor: 1
15
  ring:
16
    kvstore:
17
      store: inmemory
18

    
19
query_range:
20
  results_cache:
21
    cache:
22
      embedded_cache:
23
        enabled: true
24
        max_size_mb: 100
25

    
26
storage_config:
27
  tsdb_shipper:
28
    active_index_directory: /loki/index
29
    cache_location: /loki/index_cache
30
    cache_ttl: 24h
31
  aws:
32
    s3: s3://AWSACCESSKEYID:AWSKEYSECRET@us-east-1
33
    bucketnames: loki-storage-s3-bucketname
34

    
35
schema_config:
36
  configs:
37
    - from: 2020-10-24
38
      store: tsdb
39
      object_store: filesystem
40
      schema: v13
41
      index:
42
        prefix: index_
43
        period: 24h
44
    - from: 2024-08-30
45
      store: tsdb
46
      object_store: aws
47
      schema: v13
48
      index:
49
        prefix: index_
50
        period: 24h
51

    
52
limits_config:
53
  retention_period: 4320h # 180 days
54

    
55
compactor:
56
  working_directory: /loki/retention
57
  delete_request_store: aws
58
  retention_enabled: true
59
  compaction_interval: 10m
60
  retention_delete_delay: 2h
61
  retention_delete_worker_count: 100
62

    
63
frontend:
64
  encoding: protobuf
65

    
66
# If you would like to disable reporting, uncomment the following lines:
67
analytics:
68
  reporting_enabled: false
(1-1/2)