From a590245f04251e8fcfc3aa40163df9866e15f03e Mon Sep 17 00:00:00 2001 From: wwya Date: Mon, 23 Mar 2026 10:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20docker-compose/prometheus/?= =?UTF-8?q?loki/config/config.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../prometheus/loki/config/config.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docker-compose/prometheus/loki/config/config.yaml diff --git a/docker-compose/prometheus/loki/config/config.yaml b/docker-compose/prometheus/loki/config/config.yaml new file mode 100644 index 0000000..31034f4 --- /dev/null +++ b/docker-compose/prometheus/loki/config/config.yaml @@ -0,0 +1,34 @@ +auth_enabled: false +server: + http_listen_port: 3100 + grpc_listen_port: 9096 +common: + path_prefix: /loki/data + storage: + filesystem: + chunks_directory: /loki/data/chunks + rules_directory: /loki/data/rules + replication_factor: 1 + ring: + instance_addr: 127.0.0.1 + kvstore: + store: inmemory +schema_config: + configs: + - from: 2024-01-01 + store: tsdb + object_store: filesystem + schema: v13 + index: + prefix: index_ + period: 24h +limits_config: + ingestion_rate_mb: 20 + ingestion_burst_size_mb: 40 + max_label_name_length: 1024 + max_label_value_length: 2048 + retention_period: 30d + retention_stream: + - selector: '{job!=""}' + priority: 1 + period: 30d \ No newline at end of file