From 95b73daa36b23565a8566f71f9b202d3459b685f Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 25 Jun 2023 09:52:36 -0400 Subject: Initial Commit --- data/loki/config.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ data/loki/loki.conf | 21 ++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 data/loki/config.yml create mode 100644 data/loki/loki.conf (limited to 'data/loki') diff --git a/data/loki/config.yml b/data/loki/config.yml new file mode 100644 index 0000000..767922f --- /dev/null +++ b/data/loki/config.yml @@ -0,0 +1,54 @@ +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 + +# https://github.com/grafana/loki/issues/5123 + +query_range: + parallelise_shardable_queries: true + results_cache: + cache: + embedded_cache: + enabled: true + max_size_mb: 100 +querier: + max_concurrent: 2048 + +query_scheduler: + max_outstanding_requests_per_tenant: 4096 + +frontend: + max_outstanding_per_tenant: 4096 + +limits_config: + split_queries_by_interval: 15m + max_query_parallelism: 32 + +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 + +analytics: + reporting_enabled: false diff --git a/data/loki/loki.conf b/data/loki/loki.conf new file mode 100644 index 0000000..4925236 --- /dev/null +++ b/data/loki/loki.conf @@ -0,0 +1,21 @@ +server { + listen 443 ssl; + server_name logs.chudnick.com + + ssl_certificate "/etc/nginx/tls/fullchain.pem"; + ssl_certificate_key "/etc/nginx/tls/privkey.pem"; + + set $upstream_authelia https://auth.chudnick.com/api/verify; + resolver 192.168.20.34; + + location / { + proxy_pass http://127.0.0.1:3100; + } + +} + +server { + listen 80; + server_name logs.chudnick.com; + return 301 https://$host$request_uri; +} -- cgit v1.2.3