Skip to content
Snippets Groups Projects
Commit 74fc6108 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

Merge branch 'loki-2.4.0' into 'master'

loki: Simplify loki.yaml

See merge request !502
parents 499f6505 8cc4407a
No related branches found
No related tags found
1 merge request!502loki: Simplify loki.yaml
Pipeline #13168 passed
# Enables authentication through the X-Scope-OrgID header, which must be present
# if true. If false, the OrgID will always be set to "fake".
auth_enabled: false auth_enabled: false
server: server:
...@@ -8,24 +6,22 @@ server: ...@@ -8,24 +6,22 @@ server:
grpc_listen_address: 127.0.0.1 grpc_listen_address: 127.0.0.1
grpc_listen_port: 9095 grpc_listen_port: 9095
common:
path_prefix: /var/lib/loki
storage:
filesystem:
chunks_directory: /var/lib/loki/chunks
rules_directory: /var/lib/loki/rules
replication_factor: 1
ring:
instance_addr: 127.0.0.1
kvstore:
store: inmemory
ingester: ingester:
wal: wal:
enabled: true
dir: /var/lib/loki/wal
replay_memory_ceiling: 200MB replay_memory_ceiling: 200MB
lifecycler:
address: 127.0.0.1
ring:
kvstore:
store: inmemory
replication_factor: 1
final_sleep: 0s
chunk_idle_period: 1h # Any chunk not receiving new logs in this time will be flushed
max_chunk_age: 1h # All chunks will be flushed when they hit this age, default is 1h
chunk_target_size: 1536000 # Loki will attempt to build chunks up to 1.5MB, flushing first if chunk_idle_period or max_chunk_age is reached first
chunk_encoding: zstd chunk_encoding: zstd
chunk_retain_period: 30s # Must be greater than index read cache TTL if using an index cache (Default index read cache TTL is 5m)
max_transfer_retries: 0 # Chunk transfers disabled
schema_config: schema_config:
configs: configs:
...@@ -37,27 +33,10 @@ schema_config: ...@@ -37,27 +33,10 @@ schema_config:
prefix: index_ prefix: index_
period: 24h period: 24h
storage_config:
boltdb_shipper:
active_index_directory: /var/lib/loki/boltdb-shipper-active
cache_location: /var/lib/loki/boltdb-shipper-cache
cache_ttl: 24h # Can be increased for faster performance over longer query periods, uses more disk space
shared_store: filesystem
filesystem:
directory: /var/lib/loki/chunks
compactor: compactor:
working_directory: /var/lib/loki/boltdb-shipper-compactor retention_enabled: true
shared_store: filesystem
limits_config: limits_config:
reject_old_samples: true
reject_old_samples_max_age: 168h
max_query_series: 10000 max_query_series: 10000
retention_period: 91d
chunk_store_config: max_query_lookback: 91d
max_look_back_period: 2184h
table_manager:
retention_deletes_enabled: true
retention_period: 2184h # 91 days
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment