feat(monitoring): add loki deployment
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
volumes:
|
||||
prometheus_data: {}
|
||||
grafana_data: {}
|
||||
loki_data: {}
|
||||
|
||||
networks:
|
||||
front-tier:
|
||||
@@ -97,3 +98,14 @@ services:
|
||||
- front-tier
|
||||
restart: always
|
||||
|
||||
loki:
|
||||
image: grafana/loki
|
||||
user: "0:0"
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3100:3100"
|
||||
command: -config.file=/etc/loki/loki.yaml
|
||||
volumes:
|
||||
- ./loki/loki.yaml:/etc/loki/loki.yaml:ro
|
||||
- loki_data:/var/lib/loki
|
||||
|
||||
|
||||
39
monitoring/loki/loki.yaml
Normal file
39
monitoring/loki/loki.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
auth_enabled: false
|
||||
|
||||
server:
|
||||
http_listen_port: 3100
|
||||
|
||||
common:
|
||||
path_prefix: /var/lib/loki
|
||||
replication_factor: 1
|
||||
ring:
|
||||
kvstore:
|
||||
store: inmemory
|
||||
|
||||
schema_config:
|
||||
configs:
|
||||
- from: "2024-01-01"
|
||||
store: tsdb
|
||||
object_store: filesystem
|
||||
schema: v13
|
||||
index:
|
||||
prefix: index_
|
||||
period: 24h
|
||||
|
||||
storage_config:
|
||||
filesystem:
|
||||
directory: /var/lib/loki/chunks
|
||||
tsdb_shipper:
|
||||
active_index_directory: /var/lib/loki/index
|
||||
cache_location: /var/lib/loki/tsdb-cache
|
||||
|
||||
compactor:
|
||||
working_directory: /var/lib/loki/compactor
|
||||
retention_enabled: true
|
||||
delete_request_store: filesystem
|
||||
|
||||
limits_config:
|
||||
retention_period: 168h
|
||||
ingestion_rate_mb: 20
|
||||
ingestion_burst_size_mb: 40
|
||||
|
||||
Reference in New Issue
Block a user