aboutsummaryrefslogtreecommitdiff
path: root/data/loki
diff options
context:
space:
mode:
Diffstat (limited to 'data/loki')
-rw-r--r--data/loki/config.yml54
-rw-r--r--data/loki/loki.conf21
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 @@
1auth_enabled: false
2
3server:
4 http_listen_port: 3100
5 grpc_listen_port: 9096
6
7common:
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
21query_range:
22 parallelise_shardable_queries: true
23 results_cache:
24 cache:
25 embedded_cache:
26 enabled: true
27 max_size_mb: 100
28querier:
29 max_concurrent: 2048
30
31query_scheduler:
32 max_outstanding_requests_per_tenant: 4096
33
34frontend:
35 max_outstanding_per_tenant: 4096
36
37limits_config:
38 split_queries_by_interval: 15m
39 max_query_parallelism: 32
40
41schema_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
50ruler:
51 alertmanager_url: http://localhost:9093
52
53analytics:
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 @@
1server {
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
17server {
18 listen 80;
19 server_name logs.chudnick.com;
20 return 301 https://$host$request_uri;
21}