From 66fcba01e63a970c639147c887396395900a9535 Mon Sep 17 00:00:00 2001 From: pashko Date: Mon, 23 Dec 2024 13:28:39 +0800 Subject: [PATCH] Add configs/loki-configs/local-config.yaml --- configs/loki-configs/local-config.yaml | 82 ++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 configs/loki-configs/local-config.yaml diff --git a/configs/loki-configs/local-config.yaml b/configs/loki-configs/local-config.yaml new file mode 100644 index 0000000..899f2e2 --- /dev/null +++ b/configs/loki-configs/local-config.yaml @@ -0,0 +1,82 @@ +# For Loki version 2.8 and newer. With TSDB for indexes +analytics: + reporting_enabled: false + +auth_enabled: false + +server: + grpc_listen_port: 9095 + http_listen_port: 3100 + + +compactor: + working_directory: /loki/compactor + retention_delete_delay: 2h + retention_delete_worker_count: 150 + retention_enabled: true + delete_request_store: filesystem + +ingester: + chunk_block_size: 262144 + chunk_idle_period: 3m + chunk_retain_period: 1m + lifecycler: + ring: + kvstore: + store: inmemory + replication_factor: 1 + wal: + dir: /loki/wal + +limits_config: + max_entries_limit_per_query: 5000 + per_stream_rate_limit: 8M + per_stream_rate_limit_burst: 16M + reject_old_samples: true + reject_old_samples_max_age: 360h + +schema_config: + configs: + - from: 2024-12-23 + object_store: filesystem + store: tsdb + schema: v13 + index: + prefix: index_ + period: 24h + + +storage_config: + tsdb_shipper: + active_index_directory: /loki/tsdb-index + cache_location: /loki/tsdb-cache + filesystem: + directory: /loki/chunks +# rules_directory: /loki/rules + +common: + path_prefix: /loki + replication_factor: 1 + ring: + instance_addr: 127.0.0.1 + kvstore: + store: inmemory + +ruler: + storage: + type: local + local: + directory: /loki/ruler + rule_path: /loki/rules +# alertmanager_url: http://alertmanager:9093 + enable_api: true + ring: + kvstore: + store: inmemory + enable_sharding: false +# enable_alertmanager_v2: true + + +table_manager: + retention_deletes_enabled: true + retention_period: 360h