From e13906cee84480a4081b89007c5ca8baeb191b97 Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Wed, 1 Oct 2025 19:54:16 +0200 Subject: [PATCH] add loki container --- compose.loki.yaml | 13 ++++++++++++ loki/.gitignore | 1 + loki/local-config.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 compose.loki.yaml create mode 100644 loki/.gitignore create mode 100644 loki/local-config.yaml diff --git a/compose.loki.yaml b/compose.loki.yaml new file mode 100644 index 0000000..26951ff --- /dev/null +++ b/compose.loki.yaml @@ -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 diff --git a/loki/.gitignore b/loki/.gitignore new file mode 100644 index 0000000..1269488 --- /dev/null +++ b/loki/.gitignore @@ -0,0 +1 @@ +data diff --git a/loki/local-config.yaml b/loki/local-config.yaml new file mode 100644 index 0000000..822196d --- /dev/null +++ b/loki/local-config.yaml @@ -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