From 42e8dad9175d7e58fb677e4ce3e6295d11df47c0 Mon Sep 17 00:00:00 2001 From: spongy Date: Mon, 14 Oct 2024 11:45:47 -0400 Subject: [PATCH] added loki/promtail configs --- backend/config/loki-config.yml | 34 ++++++++++++++++++++++++++++++ backend/config/promtail-config.yml | 18 ++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 backend/config/loki-config.yml create mode 100644 backend/config/promtail-config.yml diff --git a/backend/config/loki-config.yml b/backend/config/loki-config.yml new file mode 100644 index 0000000..4842bca --- /dev/null +++ b/backend/config/loki-config.yml @@ -0,0 +1,34 @@ +auth_enabled: false + +server: + http_listen_port: 3100 + grpc_listen_port: 9096 + +common: + instance_addr: 127.0.0.1 + path_prefix: /tmp/loki + storage: + filesystem: + chunks_directory: /tmp/loki/chunks + rules_directory: /tmp/loki/rules + replication_factor: 1 + ring: + kvstore: + store: inmemory + +query_range: + results_cache: + cache: + embedded_cache: + enabled: true + max_size_mb: 100 + +schema_config: + configs: + - from: 2020-10-24 + store: tsdb + object_store: filesystem + schema: v12 + index: + prefix: index_ + period: 24h diff --git a/backend/config/promtail-config.yml b/backend/config/promtail-config.yml new file mode 100644 index 0000000..f9420c8 --- /dev/null +++ b/backend/config/promtail-config.yml @@ -0,0 +1,18 @@ +server: + http_listen_port: 9080 + grpc_listen_port: 0 + +positions: + filename: /tmp/positions.yaml + +clients: + - url: http://loki:3100/loki/api/v1/push + +scrape_configs: +- job_name: system + static_configs: + - targets: + - "localhost" + labels: + job: varlogs + __path__: /var/log/*log