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: Per Tenant Runtime Configs #3460

Merged
merged 5 commits into from
Mar 10, 2021
Merged

Conversation

slim-bean
Copy link
Collaborator

A way to change values within Loki at runtime, exactly the way overrides work but we use overrides explicitly for Limits

Rather than overload the Limits struct with non limit things instead I am creating another struct for runtime Config changes.

Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few nits, lgtm

pkg/ingester/instance.go Show resolved Hide resolved
Querier: {Store, Ring, Server, IngesterQuerier},
QueryFrontend: {Server, Overrides},
Ruler: {Ring, Server, Store, RulerStorage, IngesterQuerier, Overrides},
Ingester: {Store, Server, MemberlistKV, TenantConfigs},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about adding it here, but you're future proofing the modules in case we add to the tenant configs

@codecov-io
Copy link

Codecov Report

Merging #3460 (77e765c) into master (e383472) will decrease coverage by 0.21%.
The diff coverage is 8.86%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3460      +/-   ##
==========================================
- Coverage   63.29%   63.08%   -0.22%     
==========================================
  Files         205      205              
  Lines       17550    17615      +65     
==========================================
+ Hits        11109    11113       +4     
- Misses       5445     5505      +60     
- Partials      996      997       +1     
Impacted Files Coverage Δ
pkg/distributor/http.go 47.57% <0.00%> (-22.30%) ⬇️
pkg/loki/loki.go 0.00% <0.00%> (ø)
pkg/loki/modules.go 2.79% <0.00%> (-0.02%) ⬇️
pkg/loki/runtime_config.go 0.00% <0.00%> (ø)
pkg/ingester/instance.go 56.62% <4.76%> (-4.02%) ⬇️
pkg/distributor/distributor.go 77.18% <100.00%> (+0.15%) ⬆️
pkg/ingester/ingester.go 49.54% <100.00%> (+0.15%) ⬆️
pkg/promtail/targets/lokipush/pushtarget.go 60.75% <100.00%> (+1.01%) ⬆️
pkg/promtail/targets/file/filetarget.go 64.82% <0.00%> (-2.07%) ⬇️
pkg/logql/evaluator.go 90.19% <0.00%> (+0.35%) ⬆️
... and 1 more

@slim-bean slim-bean merged commit 8012362 into master Mar 10, 2021
@slim-bean slim-bean deleted the per-tenant-runtime-configs branch March 10, 2021 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants