Skip to content

Commit 4d23f62

Browse files
jeschkiesaknuds1
andauthored
Bump Loki. (#220)
Summary - Migrates `ring`, `kv` and `flagext` to `dskit`. - Imports overrides from Cortex and Thanos. - Enables `cortextools` to lint LogQL `pattern`. Co-authored-by: Arve Knudsen <[email protected]>
1 parent f6ea899 commit 4d23f62

File tree

2,245 files changed

+105185
-163690
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,245 files changed

+105185
-163690
lines changed

.errcheck-exclude

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
(github.com/mitchellh/colorstring).Println
22
(github.com/go-kit/kit/log.Logger).Log
3+
(github.com/go-kit/log.Logger).Log

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ linters:
1717

1818
linters-settings:
1919
errcheck:
20-
exclude: ./.errcheck-exclude
20+
exclude: .errcheck-exclude
2121
goimports:
2222
local-prefixes: "github.com/grafana/cortextool"

cmd/benchtool/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"os"
99
"os/signal"
1010

11-
"github.com/cortexproject/cortex/pkg/util/flagext"
1211
logutil "github.com/cortexproject/cortex/pkg/util/log"
1312
"github.com/go-kit/kit/log/level"
13+
"github.com/grafana/dskit/flagext"
1414
"github.com/prometheus/client_golang/prometheus"
1515
"github.com/prometheus/client_golang/prometheus/promhttp"
1616
"github.com/weaveworks/common/logging"

cmd/blockscopy/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import (
1515

1616
"cloud.google.com/go/storage"
1717
"github.com/cortexproject/cortex/pkg/storage/tsdb/bucketindex"
18-
"github.com/cortexproject/cortex/pkg/util/concurrency"
19-
"github.com/cortexproject/cortex/pkg/util/flagext"
2018
"github.com/go-kit/kit/log"
2119
"github.com/go-kit/kit/log/level"
20+
"github.com/grafana/dskit/concurrency"
21+
"github.com/grafana/dskit/flagext"
2222
"github.com/oklog/ulid"
2323
"github.com/pkg/errors"
2424
"github.com/prometheus/client_golang/prometheus"

cmd/e2ealerting/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"github.com/go-kit/kit/log/level"
88
"github.com/grafana/cortex-tools/pkg/alerting"
99

10-
"github.com/cortexproject/cortex/pkg/util/flagext"
1110
util_log "github.com/cortexproject/cortex/pkg/util/log"
11+
"github.com/grafana/dskit/flagext"
1212
"github.com/prometheus/client_golang/prometheus"
1313
"github.com/weaveworks/common/logging"
1414
"github.com/weaveworks/common/server"

go.mod

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@ module github.com/grafana/cortex-tools
33
go 1.16
44

55
require (
6-
cloud.google.com/go/bigtable v1.2.0
6+
cloud.google.com/go/bigtable v1.3.0
77
cloud.google.com/go/storage v1.10.0
8+
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
89
github.com/alecthomas/chroma v0.7.0
910
github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1 // indirect
10-
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15
11-
github.com/cortexproject/cortex v1.9.1-0.20210603172355-5e508061891a
11+
github.com/alecthomas/units v0.0.0-20210912230133-d1bdfacee922
12+
github.com/aws/aws-lambda-go v1.17.0 // indirect
13+
github.com/cortexproject/cortex v1.10.1-0.20211104100946-3f329a21cad4
1214
github.com/dlclark/regexp2 v1.2.0 // indirect
13-
github.com/go-kit/kit v0.10.0
15+
github.com/drone/envsubst v1.0.2 // indirect
16+
github.com/go-kit/kit v0.12.0
1417
github.com/gocql/gocql v0.0.0-20200526081602-cd04bd7f22a7
1518
github.com/gogo/protobuf v1.3.2
16-
github.com/golang/snappy v0.0.3
19+
github.com/golang/snappy v0.0.4
1720
github.com/gonum/blas v0.0.0-20181208220705-f22b278b28ac // indirect
1821
github.com/gonum/floats v0.0.0-20181209220543-c233463c7e82 // indirect
1922
github.com/gonum/integrate v0.0.0-20181209220457-a422b5c0fdf2 // indirect
@@ -22,37 +25,44 @@ require (
2225
github.com/gonum/matrix v0.0.0-20181209220409-c518dec07be9 // indirect
2326
github.com/gonum/stat v0.0.0-20181125101827-41a0da705a5b
2427
github.com/google/go-github/v32 v32.1.0
25-
github.com/gorilla/mux v1.7.3
28+
github.com/gorilla/mux v1.8.0
2629
github.com/grafana-tools/sdk v0.0.0-20210808170449-9de4d14888c5
27-
github.com/grafana/loki v1.6.2-0.20210604065612-c3af249fe0f7
30+
github.com/grafana/dskit v0.0.0-20211103155626-4e784973d341
31+
github.com/grafana/loki v1.6.2-0.20211108134117-5b9f5b9efaa5
32+
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.1-0.20191002090509-6af20e3a5340 // indirect
33+
github.com/influxdata/go-syslog/v3 v3.0.1-0.20201128200927-a1889d947b48 // indirect
34+
github.com/influxdata/telegraf v1.16.3 // indirect
35+
github.com/klauspost/pgzip v1.2.5 // indirect
2836
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db
2937
github.com/oklog/ulid v1.3.1
3038
github.com/opentracing-contrib/go-stdlib v1.0.0
3139
github.com/opentracing/opentracing-go v1.2.0
3240
github.com/pkg/errors v0.9.1
33-
github.com/prometheus/alertmanager v0.22.1-0.20210603124511-8b584eb2265e
34-
github.com/prometheus/client_golang v1.10.0
35-
github.com/prometheus/common v0.26.1-0.20210603143733-6ef301f414bf
36-
github.com/prometheus/prometheus v1.8.2-0.20210510213326-e313ffa8abf6
37-
github.com/sirupsen/logrus v1.7.0
41+
github.com/prometheus/alertmanager v0.23.1-0.20210914172521-e35efbddb66a
42+
github.com/prometheus/client_golang v1.11.0
43+
github.com/prometheus/common v0.31.1
44+
github.com/prometheus/prometheus v1.8.2-0.20211011171444-354d8d2ecfac
45+
github.com/sirupsen/logrus v1.8.1
3846
github.com/stretchr/testify v1.7.0
39-
github.com/thanos-io/thanos v0.19.1-0.20210427154226-d5bd651319d2
40-
github.com/weaveworks/common v0.0.0-20210419092856-009d1eebd624
41-
go.uber.org/atomic v1.7.0
47+
github.com/thanos-io/thanos v0.22.0
48+
github.com/weaveworks/common v0.0.0-20211015155308-ebe5bdc2c89e
49+
go.opentelemetry.io/otel v0.20.0 // indirect
50+
go.uber.org/atomic v1.9.0
4251
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
43-
google.golang.org/api v0.46.0
52+
google.golang.org/api v0.57.0
4453
gopkg.in/alecthomas/kingpin.v2 v2.2.6
4554
gopkg.in/yaml.v2 v2.4.0
4655
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
4756
gotest.tools v2.2.0+incompatible
4857
)
4958

5059
// Cortex Overrides
51-
replace github.com/Azure/azure-sdk-for-go => github.com/Azure/azure-sdk-for-go v36.2.0+incompatible
52-
5360
replace git.apache.org/thrift.git => github.com/apache/thrift v0.0.0-20180902110319-2566ecd5d999
61+
replace github.com/aws/aws-sdk-go => github.com/aws/aws-sdk-go v1.40.37
62+
replace github.com/thanos-io/thanos v0.22.0 => github.com/thanos-io/thanos v0.19.1-0.20210923155558-c15594a03c45
5463

55-
replace github.com/satori/go.uuid => github.com/satori/go.uuid v1.2.0
64+
// Thanos Override
65+
replace github.com/efficientgo/tools/core => github.com/efficientgo/tools/core v0.0.0-20210731122119-5d4a0645ce9a
5666

5767
// Keeping this same as Cortex to avoid dependency issues.
5868
replace k8s.io/client-go => k8s.io/client-go v0.20.4

0 commit comments

Comments
 (0)