From a62e437eb397ad22ff9119a2f41299ccb955af22 Mon Sep 17 00:00:00 2001 From: Sven Grossmann Date: Mon, 21 Nov 2022 17:12:27 +0100 Subject: [PATCH] DevEnv: Add default loki configuration (#59058) add local default config --- devenv/docker/blocks/loki/docker-compose.yaml | 3 ++ devenv/docker/blocks/loki/loki-config.yaml | 44 +++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 devenv/docker/blocks/loki/loki-config.yaml diff --git a/devenv/docker/blocks/loki/docker-compose.yaml b/devenv/docker/blocks/loki/docker-compose.yaml index ce7aeb20abc..b4985f53085 100644 --- a/devenv/docker/blocks/loki/docker-compose.yaml +++ b/devenv/docker/blocks/loki/docker-compose.yaml @@ -1,5 +1,8 @@ loki: image: grafana/loki:latest + command: -config.file=/etc/loki/loki-config.yaml + volumes: + - ./docker/blocks/loki/loki-config.yaml:/etc/loki/loki-config.yaml ports: - "3100:3100" diff --git a/devenv/docker/blocks/loki/loki-config.yaml b/devenv/docker/blocks/loki/loki-config.yaml new file mode 100644 index 00000000000..9feccdfe545 --- /dev/null +++ b/devenv/docker/blocks/loki/loki-config.yaml @@ -0,0 +1,44 @@ +auth_enabled: false + +server: + http_listen_port: 3100 + grpc_listen_port: 9096 + +common: + path_prefix: /tmp/loki + storage: + filesystem: + chunks_directory: /tmp/loki/chunks + rules_directory: /tmp/loki/rules + replication_factor: 1 + ring: + instance_addr: 127.0.0.1 + kvstore: + store: inmemory + +schema_config: + configs: + - from: 2020-10-24 + store: boltdb-shipper + object_store: filesystem + schema: v11 + index: + prefix: index_ + period: 24h + +ruler: + alertmanager_url: http://localhost:9093 + + +# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration +# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/ +# +# Statistics help us better understand how Loki is used, and they show us performance +# levels for most users. This helps us prioritize features and documentation. +# For more information on what's sent, look at +# https://github.com/grafana/loki/blob/main/pkg/usagestats/stats.go +# Refer to the buildReport method to see what goes into a report. +# +# If you would like to disable reporting, uncomment the following lines: +#analytics: +# reporting_enabled: false