Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[loki microservices]: allow custom gateway server configuration #6138

Merged
merged 4 commits into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions production/ksonnet/loki/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@

jaeger_reporter_max_queue: 1000,

// This is inserted into the gateway Nginx config file
// under the server directive

server_snippet: '',
irizzant marked this conversation as resolved.
Show resolved Hide resolved

querier: {
// This value should be set equal to (or less than) the CPU cores of the system the querier runs.
// A higher value will lead to a querier trying to process more requests than there are available
Expand Down
2 changes: 2 additions & 0 deletions production/ksonnet/loki/gateway.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ local k = import 'ksonnet-util/kausal.libsonnet';
location ~ /loki/api/.* {
proxy_pass http://query-frontend.%(namespace)s.svc.cluster.local:%(http_listen_port)s$request_uri;
}

%(server_snippet)s
}
}
||| % $._config,
Expand Down