Skip to content

Commit 2b225a0

Browse files
committed
fix: add loki config
1 parent 8795263 commit 2b225a0

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,9 @@ services:
400400
- "3100:3100"
401401
restart: unless-stopped
402402
volumes:
403+
- ./loki-config.yml:/etc/loki/local-config.yaml
403404
- ./loki-data:/loki
405+
command: -config.file=/etc/loki/local-config.yaml
404406

405407
volumes:
406408
pgdata:

loki-config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
auth_enabled: false
2+
3+
server:
4+
http_listen_port: 3100
5+
6+
ingester:
7+
lifecycler:
8+
address: 127.0.0.1
9+
ring:
10+
kvstore:
11+
store: inmemory
12+
replication_factor: 1
13+
chunk_idle_period: 5m
14+
max_chunk_age: 1h
15+
16+
schema_config:
17+
configs:
18+
- from: 2022-01-01
19+
store: boltdb-shipper
20+
object_store: filesystem
21+
schema: v12
22+
index:
23+
prefix: index_
24+
period: 24h
25+
26+
storage_config:
27+
boltdb_shipper:
28+
active_index_directory: /loki/index
29+
shared_store: filesystem
30+
filesystem:
31+
directory: /loki/chunks
32+
33+
limits_config:
34+
max_streams_per_user: 0
35+
max_entries_limit_per_query: 500000
36+
37+
chunk_store_config:
38+
max_look_back_period: 1h

0 commit comments

Comments
 (0)