Skip to content

Commit

Permalink
feat: expand query capacity (#48)
Browse files Browse the repository at this point in the history
* feat: expand query capacity

* chore: remove loki-test
  • Loading branch information
k1g99 authored Apr 11, 2024
1 parent 7b788cf commit aec8ff8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 92 deletions.
5 changes: 0 additions & 5 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ grafana.codedang.com {
reverse_proxy 127.0.0.1:3100
}

handle /lokitest/* {
uri strip_prefix /lokitest
reverse_proxy 127.0.0.1:3199
}

# handle /agent* {
# handle /agent/metric* {
# uri strip_prefix /agent/metric
Expand Down
6 changes: 6 additions & 0 deletions config/loki/loki-config-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ common:
kvstore:
store: inmemory

query_scheduler:
max_outstanding_requests_per_tenant: 4096

frontend:
max_outstanding_per_tenant: 4096

query_range:
results_cache:
cache:
Expand Down
6 changes: 6 additions & 0 deletions config/loki/loki-config-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ common:
kvstore:
store: inmemory

query_scheduler:
max_outstanding_requests_per_tenant: 4096

frontend:
max_outstanding_per_tenant: 4096

query_range:
results_cache:
cache:
Expand Down
68 changes: 0 additions & 68 deletions config/loki/loki-config-test.yml

This file was deleted.

19 changes: 0 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,13 @@ services:
/usr/bin/mc config host add minio http://minio:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD};
/usr/bin/mc mb data/loki-aws;
/usr/bin/mc mb data/loki-stage;
/usr/bin/mc mb data/loki-test;
/usr/bin/mc mb data/tempo;
/usr/bin/mc anonymous set public data/tempo;
/usr/bin/mc anonymous set public data/loki-aws;
/usr/bin/mc anonymous set public data/loki-stage;
/usr/bin/mc anonymous set public data/loki-test;
exit 0;
"
loki-test:
profiles: ["log"]
image: grafana/loki:latest
container_name: loki-test
environment:
- MINIO_ROOT_PASSWORD
- MINIO_ROOT_USER
ports:
- "3199:3100"
volumes:
- "$PWD/config/loki/loki-config-test.yml:/etc/loki/loki-config.yml"
command: -config.file=/etc/loki/loki-config.yml -config.expand-env=true
depends_on:
- minio
restart: always


loki-stage:
profiles: ["log"]
image: grafana/loki:latest
Expand Down

0 comments on commit aec8ff8

Please sign in to comment.