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

Update Cortex to master #1785

Merged
merged 9 commits into from
Mar 10, 2020
Merged

Update Cortex to master #1785

merged 9 commits into from
Mar 10, 2020

Conversation

pstibrany
Copy link
Member

@pstibrany pstibrany commented Mar 9, 2020

This PR updates Cortex to master (just before cutting Cortex 0.7 release).

Cortex master already converted many of the components to "services" (see Cortex PR #2166), but this PR doesn't go that far for Loki. However, it needs to start some of the components explicitly (lifecycler, ring, client.Pool).

In addition to that, this PR also fixes usage of memberlist KV in single-binary mode.

One more change included in this PR is cortexproject/cortex#2219, which moves stopIncomingRequests outside of FlushTransferer interface. This ingester's method must now be called before shutting down lifecycler (Loki ingester does the right thing here).

Checklist

  • Documentation added
  • Tests updated

@cyriltovena
Copy link
Contributor

FYI just merged #1746 which should help you but this means you will need to rebase.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
queryrange.NewRetryMiddleware in NewLogFilterTripperware is now created
without metrics, as that would collide with metrics in NewMetricTripperware.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
pkg/loki/modules.go Outdated Show resolved Hide resolved
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM with one nit.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
@codecov-io
Copy link

Codecov Report

Merging #1785 into master will decrease coverage by 0.28%.
The diff coverage is 35.93%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1785      +/-   ##
==========================================
- Coverage   64.34%   64.05%   -0.29%     
==========================================
  Files         121      121              
  Lines        9086     9123      +37     
==========================================
- Hits         5846     5844       -2     
- Misses       2836     2867      +31     
- Partials      404      412       +8
Impacted Files Coverage Δ
pkg/loki/loki.go 0% <ø> (ø) ⬆️
pkg/querier/queryrange/codec.go 92.77% <0%> (-1.52%) ⬇️
pkg/loki/modules.go 10.52% <0%> (-0.77%) ⬇️
pkg/querier/queryrange/roundtrip.go 80.85% <100%> (+0.41%) ⬆️
pkg/ingester/transfer.go 65% <100%> (ø) ⬆️
pkg/querier/querier.go 69.71% <33.33%> (-0.35%) ⬇️
pkg/ingester/ingester.go 59.86% <42.85%> (-1.36%) ⬇️
pkg/distributor/distributor.go 73.15% <42.85%> (-1.85%) ⬇️
pkg/promtail/targets/tailer.go 73.86% <0%> (-4.55%) ⬇️
pkg/promtail/targets/filetarget.go 68.71% <0%> (-1.85%) ⬇️

@cyriltovena cyriltovena merged commit 5ae6ea7 into grafana:master Mar 10, 2020
@pstibrany pstibrany deleted the vendor-cortex-master branch March 11, 2020 07:45
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.

None yet

3 participants