diff options
author | Sam Chudnick <sam@chudnick.com> | 2023-06-25 09:52:36 -0400 |
---|---|---|
committer | Sam Chudnick <sam@chudnick.com> | 2023-06-25 09:52:36 -0400 |
commit | 95b73daa36b23565a8566f71f9b202d3459b685f (patch) | |
tree | cb17b021be70e7868d0ec235a761f0ecdc80f3f2 /data/loki |
Diffstat (limited to 'data/loki')
-rw-r--r-- | data/loki/config.yml | 54 | ||||
-rw-r--r-- | data/loki/loki.conf | 21 |
2 files changed, 75 insertions, 0 deletions
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 @@ | |||
1 | auth_enabled: false | ||
2 | |||
3 | server: | ||
4 | http_listen_port: 3100 | ||
5 | grpc_listen_port: 9096 | ||
6 | |||
7 | common: | ||
8 | path_prefix: /tmp/loki | ||
9 | storage: | ||
10 | filesystem: | ||
11 | chunks_directory: /tmp/loki/chunks | ||
12 | rules_directory: /tmp/loki/rules | ||
13 | replication_factor: 1 | ||
14 | ring: | ||
15 | instance_addr: 127.0.0.1 | ||
16 | kvstore: | ||
17 | store: inmemory | ||
18 | |||
19 | # https://github.com/grafana/loki/issues/5123 | ||
20 | |||
21 | query_range: | ||
22 | parallelise_shardable_queries: true | ||
23 | results_cache: | ||
24 | cache: | ||
25 | embedded_cache: | ||
26 | enabled: true | ||
27 | max_size_mb: 100 | ||
28 | querier: | ||
29 | max_concurrent: 2048 | ||
30 | |||
31 | query_scheduler: | ||
32 | max_outstanding_requests_per_tenant: 4096 | ||
33 | |||
34 | frontend: | ||
35 | max_outstanding_per_tenant: 4096 | ||
36 | |||
37 | limits_config: | ||
38 | split_queries_by_interval: 15m | ||
39 | max_query_parallelism: 32 | ||
40 | |||
41 | schema_config: | ||
42 | configs: | ||
43 | - from: 2020-10-24 | ||
44 | store: boltdb-shipper | ||
45 | object_store: filesystem | ||
46 | schema: v11 | ||
47 | index: | ||
48 | prefix: index_ | ||
49 | period: 24h | ||
50 | ruler: | ||
51 | alertmanager_url: http://localhost:9093 | ||
52 | |||
53 | analytics: | ||
54 | 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 @@ | |||
1 | server { | ||
2 | listen 443 ssl; | ||
3 | server_name logs.chudnick.com | ||
4 | |||
5 | ssl_certificate "/etc/nginx/tls/fullchain.pem"; | ||
6 | ssl_certificate_key "/etc/nginx/tls/privkey.pem"; | ||
7 | |||
8 | set $upstream_authelia https://auth.chudnick.com/api/verify; | ||
9 | resolver 192.168.20.34; | ||
10 | |||
11 | location / { | ||
12 | proxy_pass http://127.0.0.1:3100; | ||
13 | } | ||
14 | |||
15 | } | ||
16 | |||
17 | server { | ||
18 | listen 80; | ||
19 | server_name logs.chudnick.com; | ||
20 | return 301 https://$host$request_uri; | ||
21 | } | ||