Update loki/rootfs/etc/loki/default-config.yaml
This commit is contained in:
		@@ -1,45 +1,33 @@
 | 
				
			|||||||
---
 | 
					
 | 
				
			||||||
 | 
					# This is a complete configuration to deploy Loki backed by the filesystem.
 | 
				
			||||||
 | 
					# The index will be shipped to the storage via tsdb-shipper.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
auth_enabled: false
 | 
					auth_enabled: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
server: {}
 | 
					server:
 | 
				
			||||||
 | 
					  http_listen_port: 3100
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ingester:
 | 
					common:
 | 
				
			||||||
  lifecycler:
 | 
					 | 
				
			||||||
    address: 127.0.0.1
 | 
					 | 
				
			||||||
  ring:
 | 
					  ring:
 | 
				
			||||||
 | 
					    instance_addr: 127.0.0.1
 | 
				
			||||||
    kvstore:
 | 
					    kvstore:
 | 
				
			||||||
      store: inmemory
 | 
					      store: inmemory
 | 
				
			||||||
  replication_factor: 1
 | 
					  replication_factor: 1
 | 
				
			||||||
    final_sleep: 0s
 | 
					  path_prefix: /tmp/loki
 | 
				
			||||||
  chunk_idle_period: 1h
 | 
					 | 
				
			||||||
  max_chunk_age: 1h
 | 
					 | 
				
			||||||
  chunk_target_size: 1048576
 | 
					 | 
				
			||||||
  chunk_retain_period: 30s
 | 
					 | 
				
			||||||
  wal:
 | 
					 | 
				
			||||||
    dir: /data/loki/wal
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
schema_config:
 | 
					schema_config:
 | 
				
			||||||
  configs:
 | 
					  configs:
 | 
				
			||||||
    - from: 2020-11-09
 | 
					  - from: 2020-05-15
 | 
				
			||||||
      store: tsdb  # Changed to tsdb
 | 
					    store: tsdb
 | 
				
			||||||
    object_store: filesystem
 | 
					    object_store: filesystem
 | 
				
			||||||
      schema: v13  # Changed to v13
 | 
					    schema: v13
 | 
				
			||||||
    index:
 | 
					    index:
 | 
				
			||||||
      prefix: index_
 | 
					      prefix: index_
 | 
				
			||||||
      period: 24h
 | 
					      period: 24h
 | 
				
			||||||
 | 
					
 | 
				
			||||||
storage_config:
 | 
					storage_config:
 | 
				
			||||||
  tsdb_shipper:
 | 
					 | 
				
			||||||
    active_index_directory: /data/loki/tsdb-active  # Set this path
 | 
					 | 
				
			||||||
    cache_location: /data/loki/tsdb-cache  # Set this path
 | 
					 | 
				
			||||||
  filesystem:
 | 
					  filesystem:
 | 
				
			||||||
    directory: /data/loki/chunks
 | 
					    directory: /tmp/loki/chunks
 | 
				
			||||||
 | 
					 | 
				
			||||||
compactor:
 | 
					 | 
				
			||||||
  working_directory: /data/loki/boltdb-shipper-compactor
 | 
					 | 
				
			||||||
  retention_enabled: true
 | 
					 | 
				
			||||||
  delete_request_store: filesystem  # Added this line
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
limits_config:
 | 
					limits_config:
 | 
				
			||||||
  reject_old_samples: true
 | 
					  reject_old_samples: true
 | 
				
			||||||
  reject_old_samples_max_age: 168h
 | 
					  reject_old_samples_max_age: 168h
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user