add loki container
This commit is contained in:
13
compose.loki.yaml
Normal file
13
compose.loki.yaml
Normal 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
1
loki/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
data
|
||||
46
loki/local-config.yaml
Normal file
46
loki/local-config.yaml
Normal 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
|
||||
Reference in New Issue
Block a user