add loki container

This commit is contained in:
2025-10-01 19:54:16 +02:00
parent 620dc2929f
commit e13906cee8
3 changed files with 60 additions and 0 deletions

13
compose.loki.yaml Normal file
View File

@@ -0,0 +1,13 @@
services:
loki:
image: grafana/loki:3.5.3
container_name: loki
restart: always
ports:
- "3100:3100"
# command: -config.file=/etc/loki/local-config.yaml
# volumes:
# - /opt/loki/local-config.yaml:/etc/loki/local-config.yaml:ro
# - /opt/loki/data:/loki
extra_hosts:
- host:192.168.2.200

1
loki/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
data

46
loki/local-config.yaml Normal file
View File

@@ -0,0 +1,46 @@
server:
http_listen_port: 3100
http_server_read_timeout: 10m
http_server_write_timeout: 10m
http_server_idle_timeout: 10m
memberlist:
join_members:
- localhost:7946
limits_config:
per_stream_rate_limit: 0
query_range:
split_queries_by_interval: 10m
cache_results: true
schema_config:
configs:
- from: 2021-08-01
store: boltdb-shipper
object_store: s3
schema: v11
index:
prefix: index_
period: 24h
common:
path_prefix: /loki
replication_factor: 1
storage:
s3:
endpoint: host:9000
insecure: true
bucketnames: loki
access_key_id: loki
secret_access_key: vryrquhchbdzgfjmlyctrdjiibobhhxc
s3forcepathstyle: true
ring:
kvstore:
store: memberlist
ruler:
storage:
s3:
bucketnames: loki-ruler