Upgrade dskit to use packages migrated from weaveworks/common (#10164)

**What this PR does / why we need it**:

This PR upgrades dskit and replaces use of packages from
weaveworks/common with their migrated equivalents in dskit. See
https://github.com/grafana/dskit/pull/342 for more details.

Note that Loki still uses some packages from weaveworks/common that I
haven't migrated (`aws` and `test`) - I'll migrate these separately.

If this PR needs to be rebuilt, I used `rewrite.sh`
([source](https://gist.github.com/charleskorn/48efe62a09d6d70f3de30327003df5c5#file-rewrite-sh))
to generate most of these changes.

**Which issue(s) this PR fixes**:

(none)

**Special notes for your reviewer**:

(none)

**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [n/a] Documentation added
- [n/a] Tests updated
- [n/a] `CHANGELOG.md` updated
- [n/a] If the change is worth mentioning in the release notes, add
`add-to-release-notes` label
- [n/a] Changes that require user attention or interaction to upgrade
are documented in `docs/sources/setup/upgrade/_index.md`
- [n/a] For Helm chart changes bump the Helm chart version in
`production/helm/loki/Chart.yaml` and update
`production/helm/loki/CHANGELOG.md` and
`production/helm/loki/README.md`. [Example
PR](d10549e3ec)

Co-authored-by: Kaviraj Kanagaraj <kavirajkanagaraj@gmail.com>
pull/10178/head
Charles Korn 2 years ago committed by GitHub
parent 0fc934e4ea
commit bde65667f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      clients/cmd/docker-driver/main.go
  2. 6
      clients/cmd/fluent-bit/config.go
  3. 6
      clients/cmd/fluent-bit/config_test.go
  4. 4
      clients/cmd/fluent-bit/loki.go
  5. 4
      clients/cmd/fluent-bit/out_grafana_loki.go
  6. 6
      clients/cmd/promtail/main.go
  7. 2
      clients/pkg/logentry/stages/drop_test.go
  8. 2
      clients/pkg/logentry/stages/labelallow_test.go
  9. 2
      clients/pkg/logentry/stages/labeldrop_test.go
  10. 2
      clients/pkg/logentry/stages/multiline_test.go
  11. 2
      clients/pkg/logentry/stages/pack_test.go
  12. 2
      clients/pkg/promtail/promtail_test.go
  13. 2
      clients/pkg/promtail/scrapeconfig/scrapeconfig.go
  14. 2
      clients/pkg/promtail/server/server.go
  15. 6
      clients/pkg/promtail/targets/gcplog/push_target.go
  16. 2
      clients/pkg/promtail/targets/gcplog/push_target_test.go
  17. 6
      clients/pkg/promtail/targets/heroku/target.go
  18. 2
      clients/pkg/promtail/targets/heroku/target_test.go
  19. 2
      clients/pkg/promtail/targets/lokipush/pushtarget.go
  20. 2
      clients/pkg/promtail/targets/lokipush/pushtarget_test.go
  21. 2
      clients/pkg/promtail/targets/lokipush/pushtargetmanager_test.go
  22. 2
      clients/pkg/promtail/targets/serverutils/config.go
  23. 2
      clients/pkg/promtail/targets/windows/target_test.go
  24. 2
      cmd/logql-analyzer/main.go
  25. 6
      cmd/loki/main.go
  26. 2
      cmd/migrate/main.go
  27. 6
      cmd/querytee/main.go
  28. 2
      go.mod
  29. 4
      go.sum
  30. 2
      integration/client/client.go
  31. 2
      pkg/canary/comparator/comparator.go
  32. 2
      pkg/configs/client/client.go
  33. 4
      pkg/distributor/distributor.go
  34. 4
      pkg/distributor/distributor_test.go
  35. 2
      pkg/distributor/http.go
  36. 2
      pkg/distributor/ratestore.go
  37. 2
      pkg/distributor/ratestore_metrics.go
  38. 2
      pkg/ingester/checkpoint_test.go
  39. 2
      pkg/ingester/client/client.go
  40. 2
      pkg/ingester/flush.go
  41. 2
      pkg/ingester/flush_test.go
  42. 6
      pkg/ingester/ingester_test.go
  43. 2
      pkg/ingester/instance.go
  44. 2
      pkg/ingester/recovery_test.go
  45. 2
      pkg/ingester/stream.go
  46. 2
      pkg/ingester/stream_test.go
  47. 2
      pkg/ingester/transfer.go
  48. 2
      pkg/ingester/transfer_test.go
  49. 2
      pkg/logcli/client/file.go
  50. 2
      pkg/logcli/query/query.go
  51. 2
      pkg/logcli/query/query_test.go
  52. 2
      pkg/logql/blocker_test.go
  53. 2
      pkg/logql/downstream_test.go
  54. 2
      pkg/logql/engine_test.go
  55. 2
      pkg/logql/metrics_test.go
  56. 6
      pkg/loki/loki.go
  57. 2
      pkg/loki/loki_test.go
  58. 6
      pkg/loki/modules.go
  59. 4
      pkg/lokifrontend/frontend/transport/handler.go
  60. 2
      pkg/lokifrontend/frontend/transport/handler_test.go
  61. 4
      pkg/lokifrontend/frontend/transport/roundtripper.go
  62. 2
      pkg/lokifrontend/frontend/v1/frontend.go
  63. 6
      pkg/lokifrontend/frontend/v1/frontend_test.go
  64. 62
      pkg/lokifrontend/frontend/v1/frontendv1pb/frontend.pb.go
  65. 2
      pkg/lokifrontend/frontend/v1/frontendv1pb/frontend.proto
  66. 4
      pkg/lokifrontend/frontend/v1/queue_test.go
  67. 2
      pkg/lokifrontend/frontend/v2/frontend.go
  68. 2
      pkg/lokifrontend/frontend/v2/frontend_scheduler_worker.go
  69. 4
      pkg/lokifrontend/frontend/v2/frontend_test.go
  70. 46
      pkg/lokifrontend/frontend/v2/frontendv2pb/frontend.pb.go
  71. 2
      pkg/lokifrontend/frontend/v2/frontendv2pb/frontend.proto
  72. 1
      pkg/push/go.sum
  73. 4
      pkg/querier/http.go
  74. 2
      pkg/querier/http_test.go
  75. 2
      pkg/querier/ingester_querier.go
  76. 2
      pkg/querier/multi_tenant_querier.go
  77. 2
      pkg/querier/multi_tenant_querier_test.go
  78. 2
      pkg/querier/querier.go
  79. 4
      pkg/querier/querier_test.go
  80. 2
      pkg/querier/queryrange/codec.go
  81. 2
      pkg/querier/queryrange/downstreamer_test.go
  82. 2
      pkg/querier/queryrange/index_stats_cache_test.go
  83. 4
      pkg/querier/queryrange/limits.go
  84. 2
      pkg/querier/queryrange/limits_test.go
  85. 2
      pkg/querier/queryrange/log_result_cache.go
  86. 2
      pkg/querier/queryrange/log_result_cache_test.go
  87. 2
      pkg/querier/queryrange/queryrangebase/instrumentation.go
  88. 2
      pkg/querier/queryrange/queryrangebase/middleware.go
  89. 2
      pkg/querier/queryrange/queryrangebase/middleware_test.go
  90. 2
      pkg/querier/queryrange/queryrangebase/query_range.go
  91. 4
      pkg/querier/queryrange/queryrangebase/query_range_test.go
  92. 4
      pkg/querier/queryrange/queryrangebase/results_cache.go
  93. 2
      pkg/querier/queryrange/queryrangebase/results_cache_test.go
  94. 2
      pkg/querier/queryrange/queryrangebase/retry.go
  95. 2
      pkg/querier/queryrange/queryrangebase/retry_test.go
  96. 4
      pkg/querier/queryrange/queryrangebase/roundtrip.go
  97. 2
      pkg/querier/queryrange/querysharding.go
  98. 2
      pkg/querier/queryrange/querysharding_test.go
  99. 4
      pkg/querier/queryrange/roundtrip.go
  100. 6
      pkg/querier/queryrange/roundtrip_test.go
  101. Some files were not shown because too many files have changed in this diff Show More

@ -9,8 +9,8 @@ import (
"github.com/docker/go-plugins-helpers/sdk"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
dslog "github.com/grafana/dskit/log"
"github.com/prometheus/common/version"
"github.com/weaveworks/common/logging"
"github.com/grafana/loki/pkg/util"
_ "github.com/grafana/loki/pkg/util/build"
@ -19,7 +19,7 @@ import (
const socketAddress = "/run/docker/plugins/loki.sock"
var logLevel logging.Level
var logLevel dslog.Level
func main() {
levelVal := os.Getenv("LOG_LEVEL")
@ -51,7 +51,7 @@ func main() {
}
}
func newLogger(lvl logging.Level) log.Logger {
func newLogger(lvl dslog.Level) log.Logger {
// plugin logs must be stdout to appear.
logger := log.NewLogfmtLogger(log.NewSyncWriter(os.Stdout))
logger = level.NewFilter(logger, util.LogFilter(lvl.String()))

@ -10,8 +10,8 @@ import (
"time"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/log"
"github.com/prometheus/common/model"
"github.com/weaveworks/common/logging"
"github.com/grafana/loki/clients/pkg/logentry/logql"
"github.com/grafana/loki/clients/pkg/promtail/client"
@ -45,7 +45,7 @@ const (
type config struct {
clientConfig client.Config
bufferConfig bufferConfig
logLevel logging.Level
logLevel log.Level
autoKubernetesLabels bool
removeKeys []string
labelKeys []string
@ -152,7 +152,7 @@ func parseConfig(cfg ConfigGetter) (*config, error) {
if logLevel == "" {
logLevel = "info"
}
var level logging.Level
var level log.Level
if err := level.Set(logLevel); err != nil {
return nil, fmt.Errorf("invalid log level: %v", logLevel)
}

@ -9,8 +9,8 @@ import (
"github.com/grafana/dskit/backoff"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/log"
"github.com/prometheus/common/model"
"github.com/weaveworks/common/logging"
"github.com/grafana/loki/clients/pkg/promtail/client"
@ -210,8 +210,8 @@ func mustParseURL(u string) flagext.URLValue {
return flagext.URLValue{URL: parsed}
}
func mustParseLogLevel(l string) logging.Level {
level := logging.Level{}
func mustParseLogLevel(l string) log.Level {
level := log.Level{}
err := level.Set(l)
if err != nil {
panic(err)

@ -13,9 +13,9 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/go-logfmt/logfmt"
dslog "github.com/grafana/dskit/log"
jsoniter "github.com/json-iterator/go"
"github.com/prometheus/common/model"
"github.com/weaveworks/common/logging"
"github.com/grafana/loki/clients/pkg/promtail/api"
"github.com/grafana/loki/clients/pkg/promtail/client"
@ -268,7 +268,7 @@ func (l *loki) createLine(records map[string]interface{}, f format) (string, err
}
}
func newLogger(logLevel logging.Level) log.Logger {
func newLogger(logLevel dslog.Level) log.Logger {
logger := log.NewLogfmtLogger(log.NewSyncWriter(os.Stderr))
logger = level.NewFilter(logger, util.LogFilter(logLevel.String()))
logger = log.With(logger, "caller", log.Caller(3))

@ -10,8 +10,8 @@ import (
"github.com/fluent/fluent-bit-go/output"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
dslog "github.com/grafana/dskit/log"
"github.com/prometheus/common/version"
"github.com/weaveworks/common/logging"
_ "github.com/grafana/loki/pkg/util/build"
)
@ -28,7 +28,7 @@ var (
)
func init() {
var logLevel logging.Level
var logLevel dslog.Level
_ = logLevel.Set("info")
logger = newLogger(logLevel)
}

@ -14,10 +14,10 @@ import (
"github.com/go-kit/log/level"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/log"
"github.com/grafana/dskit/tracing"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/version"
"github.com/weaveworks/common/logging"
"github.com/weaveworks/common/tracing"
"github.com/grafana/loki/clients/pkg/logentry/stages"
"github.com/grafana/loki/clients/pkg/promtail"
@ -102,7 +102,7 @@ func main() {
}
// Init the logger which will honor the log level set in cfg.Server
if reflect.DeepEqual(&config.Config.ServerConfig.Config.LogLevel, &logging.Level{}) {
if reflect.DeepEqual(&config.Config.ServerConfig.Config.LogLevel, &log.Level{}) {
fmt.Println("Invalid log level")
exit(1)
}

@ -6,11 +6,11 @@ import (
"testing"
"time"
ww "github.com/grafana/dskit/server"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
ww "github.com/weaveworks/common/server"
util_log "github.com/grafana/loki/pkg/util/log"
)

@ -4,10 +4,10 @@ import (
"testing"
"time"
ww "github.com/grafana/dskit/server"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
ww "github.com/weaveworks/common/server"
util_log "github.com/grafana/loki/pkg/util/log"
)

@ -4,10 +4,10 @@ import (
"testing"
"time"
ww "github.com/grafana/dskit/server"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
ww "github.com/weaveworks/common/server"
util_log "github.com/grafana/loki/pkg/util/log"
)

@ -6,9 +6,9 @@ import (
"testing"
"time"
ww "github.com/grafana/dskit/server"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/require"
ww "github.com/weaveworks/common/server"
"github.com/grafana/loki/clients/pkg/promtail/api"

@ -4,12 +4,12 @@ import (
"testing"
"time"
ww "github.com/grafana/dskit/server"
json "github.com/json-iterator/go"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
ww "github.com/weaveworks/common/server"
"github.com/grafana/loki/clients/pkg/promtail/api"

@ -17,6 +17,7 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/flagext"
serverww "github.com/grafana/dskit/server"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
dto "github.com/prometheus/client_model/go"
@ -28,7 +29,6 @@ import (
"github.com/prometheus/prometheus/promql/parser"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
serverww "github.com/weaveworks/common/server"
"github.com/grafana/loki/clients/pkg/logentry/stages"
"github.com/grafana/loki/clients/pkg/promtail/client"

@ -8,6 +8,7 @@ import (
"github.com/Shopify/sarama"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/server"
promconfig "github.com/prometheus/common/config"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/discovery"
@ -25,7 +26,6 @@ import (
"github.com/prometheus/prometheus/discovery/triton"
"github.com/prometheus/prometheus/discovery/zookeeper"
"github.com/prometheus/prometheus/model/relabel"
"github.com/weaveworks/common/server"
"github.com/grafana/loki/clients/pkg/logentry/stages"
"github.com/grafana/loki/clients/pkg/promtail/discovery/consulagent"

@ -17,11 +17,11 @@ import (
"github.com/felixge/fgprof"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
serverww "github.com/grafana/dskit/server"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/version"
serverww "github.com/weaveworks/common/server"
"github.com/grafana/loki/clients/pkg/promtail/server/ui"
"github.com/grafana/loki/clients/pkg/promtail/targets"

@ -9,10 +9,10 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
dslog "github.com/grafana/dskit/log"
"github.com/grafana/dskit/server"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/relabel"
"github.com/weaveworks/common/logging"
"github.com/weaveworks/common/server"
"github.com/grafana/loki/clients/pkg/promtail/api"
"github.com/grafana/loki/clients/pkg/promtail/scrapeconfig"
@ -80,7 +80,7 @@ func (h *pushTarget) run() error {
h.config.Server.RegisterInstrumentation = false
// Wrapping util logger with component-specific key vals, and the expected GoKit logging interface
h.config.Server.Log = logging.GoKit(log.With(util_log.Logger, "component", "gcp_push"))
h.config.Server.Log = dslog.GoKit(log.With(util_log.Logger, "component", "gcp_push"))
srv, err := server.New(h.config.Server)
if err != nil {

@ -14,11 +14,11 @@ import (
"github.com/grafana/loki/clients/pkg/promtail/api"
"github.com/go-kit/log"
"github.com/grafana/dskit/server"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/relabel"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/server"
lokiClient "github.com/grafana/loki/clients/pkg/promtail/client"
"github.com/grafana/loki/clients/pkg/promtail/client/fake"

@ -8,12 +8,12 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
dslog "github.com/grafana/dskit/log"
"github.com/grafana/dskit/server"
herokuEncoding "github.com/heroku/x/logplex/encoding"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/model/relabel"
"github.com/weaveworks/common/logging"
"github.com/weaveworks/common/server"
"github.com/grafana/loki/clients/pkg/promtail/api"
lokiClient "github.com/grafana/loki/clients/pkg/promtail/client"
@ -80,7 +80,7 @@ func (h *Target) run() error {
h.config.Server.RegisterInstrumentation = false
// Wrapping util logger with component-specific key vals, and the expected GoKit logging interface
h.config.Server.Log = logging.GoKit(log.With(util_log.Logger, "component", "heroku_drain"))
h.config.Server.Log = dslog.GoKit(log.With(util_log.Logger, "component", "heroku_drain"))
srv, err := server.New(h.config.Server)
if err != nil {

@ -13,11 +13,11 @@ import (
"github.com/go-kit/log"
"github.com/google/uuid"
"github.com/grafana/dskit/server"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/relabel"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/server"
lokiClient "github.com/grafana/loki/clients/pkg/promtail/client"
"github.com/grafana/loki/clients/pkg/promtail/client/fake"

@ -11,12 +11,12 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/server"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/model/relabel"
promql_parser "github.com/prometheus/prometheus/promql/parser"
"github.com/weaveworks/common/server"
"github.com/grafana/dskit/tenant"

@ -14,11 +14,11 @@ import (
"github.com/go-kit/log"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/server"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/relabel"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/server"
"github.com/grafana/loki/clients/pkg/promtail/api"
"github.com/grafana/loki/clients/pkg/promtail/client"

@ -3,7 +3,7 @@ package lokipush
import (
"testing"
"github.com/weaveworks/common/server"
"github.com/grafana/dskit/server"
"github.com/grafana/loki/clients/pkg/promtail/scrapeconfig"
)

@ -3,8 +3,8 @@ package serverutils
import (
"flag"
"github.com/grafana/dskit/server"
"github.com/imdario/mergo"
"github.com/weaveworks/common/server"
)
// MergeWithDefaults applies server.Config defaults to a given and different server.Config.

@ -7,11 +7,11 @@ import (
"testing"
"time"
"github.com/grafana/dskit/server"
jsoniter "github.com/json-iterator/go"
"github.com/prometheus/common/model"
"github.com/spf13/afero"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/server"
"golang.org/x/sys/windows/svc/eventlog"
"github.com/grafana/loki/clients/pkg/promtail/api"

@ -7,8 +7,8 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/gorilla/mux"
"github.com/grafana/dskit/server"
"github.com/prometheus/client_golang/prometheus"
"github.com/weaveworks/common/server"
"github.com/grafana/loki/pkg/logqlanalyzer"
"github.com/grafana/loki/pkg/sizing"

@ -8,10 +8,10 @@ import (
"runtime"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/log"
"github.com/grafana/dskit/tracing"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/version"
"github.com/weaveworks/common/logging"
"github.com/weaveworks/common/tracing"
"github.com/grafana/loki/pkg/loki"
"github.com/grafana/loki/pkg/util"
@ -44,7 +44,7 @@ func main() {
validation.SetDefaultLimitsForYAMLUnmarshalling(config.LimitsConfig)
// Init the logger which will honor the log level set in config.Server
if reflect.DeepEqual(&config.Server.LogLevel, &logging.Level{}) {
if reflect.DeepEqual(&config.Server.LogLevel, &log.Level{}) {
level.Error(util_log.Logger).Log("msg", "invalid log level")
exit(1)
}

@ -15,8 +15,8 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/grafana/dskit/user"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/logql/syntax"
"github.com/grafana/loki/pkg/loki"

@ -5,10 +5,10 @@ import (
"os"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/log"
"github.com/grafana/dskit/server"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors"
"github.com/weaveworks/common/logging"
"github.com/weaveworks/common/server"
"github.com/grafana/loki/pkg/loghttp"
util_log "github.com/grafana/loki/pkg/util/log"
@ -17,7 +17,7 @@ import (
type Config struct {
ServerMetricsPort int
LogLevel logging.Level
LogLevel log.Level
ProxyConfig querytee.ProxyConfig
}

@ -49,7 +49,7 @@ require (
github.com/gorilla/mux v1.8.0
github.com/gorilla/websocket v1.5.0
github.com/grafana/cloudflare-go v0.0.0-20230110200409-c627cf6792f2
github.com/grafana/dskit v0.0.0-20230725162534-96da0816983e
github.com/grafana/dskit v0.0.0-20230804003603-740f56bd2934
github.com/grafana/go-gelf/v2 v2.0.1
github.com/grafana/gomemcache v0.0.0-20230316202710-a081dae0aba9
github.com/grafana/regexp v0.0.0-20221122212121-6b5c0a4cb7fd

@ -1080,8 +1080,8 @@ github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad
github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY=
github.com/grafana/cloudflare-go v0.0.0-20230110200409-c627cf6792f2 h1:qhugDMdQ4Vp68H0tp/0iN17DM2ehRo1rLEdOFe/gB8I=
github.com/grafana/cloudflare-go v0.0.0-20230110200409-c627cf6792f2/go.mod h1:w/aiO1POVIeXUQyl0VQSZjl5OAGDTL5aX+4v0RA1tcw=
github.com/grafana/dskit v0.0.0-20230725162534-96da0816983e h1:lLZMz1yUfp2y9ozpXsiBR14bVQCEnuaqa4siQdFazF0=
github.com/grafana/dskit v0.0.0-20230725162534-96da0816983e/go.mod h1:M03k2fzuQ2n9TVE1xfVKTESibxsXdw0wYfWT3+9Owp4=
github.com/grafana/dskit v0.0.0-20230804003603-740f56bd2934 h1:W1g+y6rOO7K/Jm2XNPxIXyJisJSJ25uiVVaSa7N1Zwo=
github.com/grafana/dskit v0.0.0-20230804003603-740f56bd2934/go.mod h1:Xg0aN3EpqkYFW1ZxGyIl4BGEpr3QrCQOM1aWalpU3ik=
github.com/grafana/go-gelf/v2 v2.0.1 h1:BOChP0h/jLeD+7F9mL7tq10xVkDG15he3T1zHuQaWak=
github.com/grafana/go-gelf/v2 v2.0.1/go.mod h1:lexHie0xzYGwCgiRGcvZ723bSNyNI8ZRD4s0CLobh90=
github.com/grafana/gocql v0.0.0-20200605141915-ba5dc39ece85 h1:xLuzPoOzdfNb/RF/IENCw+oLVdZB4G21VPhkHBgwSHY=

@ -13,8 +13,8 @@ import (
"strings"
"time"
"github.com/grafana/dskit/user"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/user"
)
const requestTimeout = 30 * time.Second

@ -7,9 +7,9 @@ import (
"sync"
"time"
"github.com/grafana/dskit/instrument"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/weaveworks/common/instrument"
"github.com/grafana/loki/pkg/canary/reader"
)

@ -14,10 +14,10 @@ import (
"github.com/go-kit/log/level"
dstls "github.com/grafana/dskit/crypto/tls"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/instrument"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/common/version"
"github.com/weaveworks/common/instrument"
"github.com/grafana/loki/pkg/configs/userconfig"
util_log "github.com/grafana/loki/pkg/util/log"

@ -15,19 +15,19 @@ import (
"github.com/go-kit/log/level"
"github.com/prometheus/prometheus/model/labels"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/kv"
"github.com/grafana/dskit/limiter"
"github.com/grafana/dskit/ring"
ring_client "github.com/grafana/dskit/ring/client"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/tenant"
"github.com/grafana/dskit/user"
lru "github.com/hashicorp/golang-lru"
"github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/user"
"go.uber.org/atomic"
"github.com/grafana/loki/pkg/analytics"

@ -14,17 +14,17 @@ import (
"github.com/go-kit/log"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/kv"
"github.com/grafana/dskit/kv/consul"
"github.com/grafana/dskit/ring"
ring_client "github.com/grafana/dskit/ring/client"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/user"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/user"
"google.golang.org/grpc"
"google.golang.org/grpc/health/grpc_health_v1"

@ -6,7 +6,7 @@ import (
"strings"
"github.com/go-kit/log/level"
"github.com/weaveworks/common/httpgrpc"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/loki/pkg/util"

@ -8,12 +8,12 @@ import (
"time"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/instrument"
"github.com/grafana/dskit/ring"
"github.com/grafana/dskit/ring/client"
"github.com/grafana/dskit/services"
"github.com/opentracing/opentracing-go"
"github.com/prometheus/client_golang/prometheus"
"github.com/weaveworks/common/instrument"
"github.com/grafana/loki/pkg/logproto"
"github.com/grafana/loki/pkg/util"

@ -1,9 +1,9 @@
package distributor
import (
"github.com/grafana/dskit/instrument"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/weaveworks/common/instrument"
)
type ratestoreMetrics struct {

@ -9,10 +9,10 @@ import (
"time"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/user"
"github.com/prometheus/prometheus/model/labels"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/chunkenc"
"github.com/grafana/loki/pkg/distributor/writefailures"

@ -6,11 +6,11 @@ import (
"time"
"github.com/grafana/dskit/grpcclient"
"github.com/grafana/dskit/middleware"
"github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc"
"github.com/opentracing/opentracing-go"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/weaveworks/common/middleware"
"google.golang.org/grpc"
"google.golang.org/grpc/health/grpc_health_v1"

@ -8,10 +8,10 @@ import (
"time"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/user"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/user"
"golang.org/x/net/context"
"github.com/grafana/dskit/tenant"

@ -14,10 +14,10 @@ import (
"github.com/grafana/dskit/kv"
"github.com/grafana/dskit/ring"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/user"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"golang.org/x/net/context"
"github.com/grafana/dskit/tenant"

@ -12,13 +12,13 @@ import (
"time"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/middleware"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/user"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/middleware"
"github.com/weaveworks/common/user"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

@ -9,6 +9,7 @@ import (
"time"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/httpgrpc"
"github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
@ -17,7 +18,6 @@ import (
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/tsdb/chunks"
tsdb_record "github.com/prometheus/prometheus/tsdb/record"
"github.com/weaveworks/common/httpgrpc"
"go.uber.org/atomic"
"github.com/grafana/loki/pkg/analytics"

@ -9,12 +9,12 @@ import (
"testing"
"time"
"github.com/grafana/dskit/user"
"github.com/pkg/errors"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/tsdb/chunks"
"github.com/prometheus/prometheus/tsdb/record"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/distributor/writefailures"
"github.com/grafana/loki/pkg/ingester/client"

@ -9,11 +9,11 @@ import (
"time"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/httpgrpc"
"github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/httpgrpc"
"github.com/grafana/loki/pkg/chunkenc"
"github.com/grafana/loki/pkg/distributor/writefailures"

@ -9,10 +9,10 @@ import (
"testing"
"time"
"github.com/grafana/dskit/httpgrpc"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/httpgrpc"
"github.com/grafana/loki/pkg/chunkenc"
"github.com/grafana/loki/pkg/iter"

@ -9,11 +9,11 @@ import (
"github.com/go-kit/log/level"
"github.com/grafana/dskit/backoff"
"github.com/grafana/dskit/ring"
"github.com/grafana/dskit/user"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/user"
"golang.org/x/net/context"
"github.com/grafana/loki/pkg/logproto"

@ -12,9 +12,9 @@ import (
"github.com/grafana/dskit/kv"
"github.com/grafana/dskit/ring"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/user"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"golang.org/x/net/context"
"google.golang.org/grpc"

@ -21,8 +21,8 @@ import (
"github.com/grafana/loki/pkg/util/marshal"
"github.com/grafana/loki/pkg/util/validation"
"github.com/grafana/dskit/user"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/user"
)
const (

@ -11,9 +11,9 @@ import (
"time"
"github.com/grafana/dskit/multierror"
"github.com/grafana/dskit/user"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/weaveworks/common/user"
"gopkg.in/yaml.v2"
"github.com/grafana/loki/pkg/logcli/client"

@ -12,9 +12,9 @@ import (
"github.com/go-kit/log"
"github.com/gorilla/websocket"
"github.com/grafana/dskit/user"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/logcli/output"
"github.com/grafana/loki/pkg/logcli/volume"

@ -7,8 +7,8 @@ import (
"time"
"github.com/go-kit/log"
"github.com/grafana/dskit/user"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/logproto"
"github.com/grafana/loki/pkg/logqlmodel"

@ -7,10 +7,10 @@ import (
"time"
"github.com/go-kit/log"
"github.com/grafana/dskit/user"
"github.com/prometheus/prometheus/promql"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/logproto"
)

@ -15,13 +15,13 @@ import (
"github.com/grafana/loki/pkg/querier/queryrange/queryrangebase/definitions"
"github.com/go-kit/log"
"github.com/grafana/dskit/user"
json "github.com/json-iterator/go"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql"
promql_parser "github.com/prometheus/prometheus/promql/parser"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/iter"
"github.com/grafana/loki/pkg/logproto"

@ -9,11 +9,11 @@ import (
"time"
"github.com/go-kit/log"
"github.com/grafana/dskit/user"
"github.com/opentracing/opentracing-go"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/uber/jaeger-client-go"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/logproto"
"github.com/grafana/loki/pkg/logqlmodel"

@ -18,15 +18,15 @@ import (
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/grpcutil"
"github.com/grafana/dskit/kv/memberlist"
"github.com/grafana/dskit/middleware"
"github.com/grafana/dskit/modules"
"github.com/grafana/dskit/ring"
"github.com/grafana/dskit/runtimeconfig"
"github.com/grafana/dskit/server"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/signals"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/weaveworks/common/middleware"
"github.com/weaveworks/common/server"
"github.com/weaveworks/common/signals"
"google.golang.org/grpc/health/grpc_health_v1"
"github.com/grafana/loki/pkg/analytics"

@ -12,9 +12,9 @@ import (
"time"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/server"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/server"
internalserver "github.com/grafana/loki/pkg/server"
)

@ -20,18 +20,18 @@ import (
"github.com/grafana/dskit/dns"
"github.com/grafana/dskit/kv/codec"
"github.com/grafana/dskit/kv/memberlist"
"github.com/grafana/dskit/middleware"
"github.com/grafana/dskit/ring"
"github.com/grafana/dskit/runtimeconfig"
"github.com/grafana/dskit/server"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/tenant"
"github.com/grafana/dskit/user"
gerrors "github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors"
"github.com/prometheus/common/model"
"github.com/prometheus/common/version"
"github.com/weaveworks/common/middleware"
"github.com/weaveworks/common/server"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/analytics"
"github.com/grafana/loki/pkg/distributor"

@ -14,10 +14,10 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/httpgrpc/server"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/httpgrpc/server"
"github.com/grafana/dskit/tenant"

@ -6,9 +6,9 @@ import (
"net/http/httptest"
"testing"
"github.com/grafana/dskit/httpgrpc"
"github.com/pkg/errors"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/httpgrpc"
)
func TestWriteError(t *testing.T) {

@ -6,8 +6,8 @@ import (
"io"
"net/http"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/httpgrpc/server"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/httpgrpc/server"
)
// GrpcRoundTripper is similar to http.RoundTripper, but works with HTTP requests converted to protobuf messages.

@ -9,12 +9,12 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/services"
"github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/weaveworks/common/httpgrpc"
"github.com/grafana/dskit/tenant"

@ -13,7 +13,10 @@ import (
"github.com/go-kit/log"
"github.com/gorilla/mux"
"github.com/grafana/dskit/flagext"
httpgrpc_server "github.com/grafana/dskit/httpgrpc/server"
"github.com/grafana/dskit/middleware"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/user"
otgrpc "github.com/opentracing-contrib/go-grpc"
"github.com/opentracing-contrib/go-stdlib/nethttp"
"github.com/opentracing/opentracing-go"
@ -23,9 +26,6 @@ import (
"github.com/stretchr/testify/require"
"github.com/uber/jaeger-client-go"
"github.com/uber/jaeger-client-go/config"
httpgrpc_server "github.com/weaveworks/common/httpgrpc/server"
"github.com/weaveworks/common/middleware"
"github.com/weaveworks/common/user"
"go.uber.org/atomic"
"google.golang.org/grpc"

@ -11,8 +11,8 @@ import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
httpgrpc "github.com/grafana/dskit/httpgrpc"
stats "github.com/grafana/loki/pkg/querier/stats"
httpgrpc "github.com/weaveworks/common/httpgrpc"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@ -267,38 +267,38 @@ func init() {
}
var fileDescriptor_e58870c6eb9e26f7 = []byte{
// 487 bytes of a gzipped FileDescriptorProto
// 484 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0xc7, 0x3d, 0x50, 0x4a, 0x98, 0x58, 0x95, 0xb5, 0x2a, 0x28, 0x32, 0xb0, 0x8a, 0x2c, 0x40,
0x11, 0x07, 0x9b, 0x06, 0x24, 0x3e, 0x8e, 0xa5, 0xa1, 0xf4, 0x82, 0x8a, 0x63, 0x2e, 0x5c, 0xaa,
0xc4, 0xd9, 0x3a, 0x56, 0x12, 0xaf, 0x6b, 0x6f, 0x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x2a, 0xb4, 0xa7, 0x8f, 0x70, 0xab, 0xdc, 0x0e, 0xb1, 0xd0, 0x2c, 0x07,
0x38, 0xf5, 0x5b, 0xef, 0x3f, 0xb4, 0xda, 0x81, 0x65, 0x10, 0xc4, 0xed, 0xa3, 0x56, 0x70, 0x7a,
0x7c, 0x68, 0x41, 0xf3, 0x27, 0x60, 0x45, 0x6f, 0xe2, 0x08, 0x6f, 0x9f, 0x64, 0xbc, 0xcb, 0xf2,
0x9c, 0xd8, 0x57, 0x3b, 0xde, 0x5c, 0x98, 0xbd, 0xa2, 0x6d, 0x7e, 0x62, 0xc7, 0x68, 0xc0, 0x1e,
0x10, 0x86, 0xbb, 0xd7, 0xb1, 0x91, 0xc7, 0x57, 0x99, 0xff, 0x18, 0xdb, 0x7e, 0xf2, 0xbf, 0x30,
0x35, 0xe2, 0xc1, 0xc1, 0x74, 0x46, 0x8d, 0x8b, 0x19, 0x35, 0x2e, 0x67, 0x14, 0xbe, 0x14, 0x14,
0x7e, 0x14, 0x14, 0x7e, 0x15, 0x14, 0xa6, 0x05, 0x85, 0xdf, 0x05, 0x85, 0x3f, 0x05, 0x35, 0x2e,
0x0b, 0x0a, 0xdf, 0xe6, 0xd4, 0x98, 0xce, 0xa9, 0x71, 0x31, 0xa7, 0xc6, 0x47, 0x73, 0xf5, 0xa1,
0x74, 0xb6, 0xe5, 0xff, 0xfa, 0xec, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x13, 0x10, 0xda,
0x5c, 0x03, 0x00, 0x00,
}
func (x Type) String() string {

@ -4,7 +4,7 @@ syntax = "proto3";
// in order to not break backward compatibility.
package frontend;
import "github.com/weaveworks/common/httpgrpc/httpgrpc.proto";
import "github.com/grafana/dskit/httpgrpc/httpgrpc.proto";
import "gogoproto/gogo.proto";
import "pkg/querier/stats/stats.proto";

@ -10,11 +10,11 @@ import (
"github.com/go-kit/log"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/user"
"github.com/pkg/errors"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/user"
"google.golang.org/grpc/metadata"
"github.com/grafana/loki/pkg/lokifrontend/frontend/v1/frontendv1pb"

@ -13,6 +13,7 @@ import (
"github.com/go-kit/log/level"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/grpcclient"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/netutil"
"github.com/grafana/dskit/ring"
"github.com/grafana/dskit/services"
@ -20,7 +21,6 @@ import (
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/weaveworks/common/httpgrpc"
"go.uber.org/atomic"
"github.com/grafana/dskit/tenant"

@ -9,10 +9,10 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/backoff"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/ring"
"github.com/grafana/dskit/services"
"github.com/pkg/errors"
"github.com/weaveworks/common/httpgrpc"
"google.golang.org/grpc"
"github.com/grafana/loki/pkg/lokifrontend/frontend/v2/frontendv2pb"

@ -11,10 +11,10 @@ import (
"github.com/go-kit/log"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/services"
"github.com/grafana/dskit/user"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/user"
"go.uber.org/atomic"
"google.golang.org/grpc"

@ -8,8 +8,8 @@ import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
httpgrpc "github.com/grafana/dskit/httpgrpc"
stats "github.com/grafana/loki/pkg/querier/stats"
httpgrpc "github.com/weaveworks/common/httpgrpc"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
@ -135,29 +135,29 @@ func init() {
}
var fileDescriptor_85a7e5cdf8261f06 = []byte{
// 342 bytes of a gzipped FileDescriptorProto
// 338 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x51, 0xbd, 0x6e, 0xf2, 0x30,
0x14, 0xb5, 0xbf, 0xaf, 0x3f, 0x92, 0x61, 0x72, 0x7f, 0x14, 0x21, 0xf5, 0x8a, 0x66, 0x62, 0x8a,
0xa5, 0xb4, 0x43, 0xd5, 0x11, 0x55, 0xa8, 0xdd, 0x4a, 0xca, 0xd4, 0x0d, 0xa8, 0x1b, 0x28, 0x10,
0x07, 0xdb, 0x01, 0xb1, 0xf5, 0x09, 0xaa, 0x3e, 0x46, 0x1f, 0xa5, 0x23, 0x23, 0x63, 0x31, 0x4b,
0x47, 0x1e, 0xa1, 0x4a, 0x0c, 0x11, 0x51, 0xa5, 0x2e, 0x57, 0xe7, 0xe6, 0xdc, 0x9b, 0x73, 0xee,
0x31, 0xb9, 0x8a, 0x07, 0x21, 0x1b, 0x8a, 0x41, 0xff, 0x59, 0x8a, 0x48, 0xf3, 0xe8, 0x89, 0xe5,
0x60, 0xe2, 0xe7, 0x78, 0xe2, 0xc7, 0x9d, 0xbc, 0xf1, 0x62, 0x29, 0xb4, 0xa0, 0xe5, 0x5d, 0xb2,
0x72, 0x19, 0xf6, 0x75, 0x2f, 0xe9, 0x78, 0x5d, 0x31, 0x62, 0x53, 0xde, 0x9e, 0xf0, 0xa9, 0x90,
0x03, 0xc5, 0xba, 0x62, 0x34, 0x12, 0x11, 0xeb, 0x69, 0x1d, 0x87, 0x32, 0xee, 0xe6, 0xc0, 0xfe,
0xa3, 0x72, 0x1c, 0x8a, 0x50, 0x64, 0x90, 0xa5, 0x68, 0xf3, 0xf5, 0x2c, 0xf5, 0x34, 0x4e, 0xb8,
0xec, 0x73, 0xc9, 0x94, 0x6e, 0x6b, 0x65, 0xab, 0xa5, 0xdd, 0x37, 0x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, 0x2b, 0xcd, 0xdc, 0x76, 0x3a, 0xf7, 0x5b, 0x36, 0xd8, 0x9b, 0xa5,
0x2e, 0xf9, 0x5f, 0xec, 0x76, 0xfe, 0x16, 0xa2, 0xaa, 0x67, 0x9d, 0x3c, 0xe4, 0x35, 0xb0, 0x94,
0x7b, 0x42, 0x8e, 0xf6, 0xfc, 0x58, 0xa9, 0xff, 0x44, 0x68, 0x6b, 0x13, 0x4f, 0x4b, 0xc8, 0xb6,
0xbd, 0x87, 0x76, 0x48, 0x65, 0x67, 0x98, 0xd6, 0xbd, 0xdd, 0x08, 0xbd, 0x9f, 0x77, 0xd5, 0xce,
0x7f, 0x99, 0xb0, 0x9b, 0x5c, 0xd4, 0x6c, 0xce, 0x97, 0x80, 0x16, 0x4b, 0x40, 0xeb, 0x25, 0xe0,
0x17, 0x03, 0xf8, 0xdd, 0x00, 0xfe, 0x30, 0x80, 0xe7, 0x06, 0xf0, 0xa7, 0x01, 0xfc, 0x65, 0x00,
0xad, 0x0d, 0xe0, 0xb7, 0x15, 0xa0, 0xf9, 0x0a, 0xd0, 0x62, 0x05, 0xe8, 0x71, 0xef, 0xfb, 0xba,
0x07, 0x45, 0xbc, 0x97, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x9c, 0x3b, 0xb1, 0x0f, 0x02,
0x00, 0x00,
}
func (this *QueryResultRequest) Equal(that interface{}) bool {

@ -2,7 +2,7 @@ syntax = "proto3";
package frontendv2pb;
import "github.com/weaveworks/common/httpgrpc/httpgrpc.proto";
import "github.com/grafana/dskit/httpgrpc/httpgrpc.proto";
import "gogoproto/gogo.proto";
import "pkg/querier/stats/stats.proto";

@ -31,6 +31,7 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/exp v0.0.0-20230321023759-10a507213a29/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/exp v0.0.0-20230713183714-613f0c0eb8a1 h1:MGwJjxBy0HJshjDNfLsYO8xppfqWlA5ZT9OhtUUhTNw=
golang.org/x/exp v0.0.0-20230713183714-613f0c0eb8a1/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=

@ -10,13 +10,13 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/gorilla/websocket"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/middleware"
"github.com/opentracing/opentracing-go"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql/parser"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/middleware"
"github.com/grafana/dskit/tenant"

@ -19,9 +19,9 @@ import (
"github.com/go-kit/log"
"github.com/grafana/dskit/tenant"
"github.com/grafana/dskit/user"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
)
var (

@ -9,13 +9,13 @@ import (
"github.com/grafana/loki/pkg/storage/stores/index/seriesvolume"
"github.com/gogo/status"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/ring"
ring_client "github.com/grafana/dskit/ring/client"
"github.com/grafana/dskit/services"
"github.com/pkg/errors"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/httpgrpc"
"google.golang.org/grpc/codes"
"github.com/grafana/loki/pkg/distributor/clientpool"

@ -6,8 +6,8 @@ import (
"github.com/grafana/loki/pkg/storage/stores/index/seriesvolume"
"github.com/go-kit/log"
"github.com/grafana/dskit/user"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/user"
"github.com/grafana/dskit/tenant"

@ -10,10 +10,10 @@ import (
"unicode"
"github.com/go-kit/log"
"github.com/grafana/dskit/user"
"github.com/prometheus/prometheus/model/labels"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"github.com/grafana/dskit/tenant"

@ -11,12 +11,12 @@ import (
"github.com/grafana/loki/pkg/storage/stores/index/seriesvolume"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/tenant"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/httpgrpc"
"golang.org/x/sync/errgroup"
"google.golang.org/grpc/health/grpc_health_v1"

@ -9,14 +9,14 @@ import (
"time"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/ring"
ring_client "github.com/grafana/dskit/ring/client"
"github.com/grafana/dskit/user"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/ingester/client"
"github.com/grafana/loki/pkg/logproto"

@ -15,11 +15,11 @@ import (
"github.com/grafana/loki/pkg/storage/stores/index/seriesvolume"
"github.com/grafana/dskit/httpgrpc"
json "github.com/json-iterator/go"
"github.com/opentracing/opentracing-go"
otlog "github.com/opentracing/opentracing-go/log"
"github.com/prometheus/prometheus/model/timestamp"
"github.com/weaveworks/common/httpgrpc"
"github.com/grafana/loki/pkg/loghttp"
"github.com/grafana/loki/pkg/logproto"

@ -8,10 +8,10 @@ import (
"testing"
"time"
"github.com/grafana/dskit/user"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"go.uber.org/atomic"
"github.com/grafana/loki/pkg/logproto"

@ -7,9 +7,9 @@ import (
"time"
"github.com/go-kit/log"
"github.com/grafana/dskit/user"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/logproto"
"github.com/grafana/loki/pkg/logqlmodel/stats"

@ -12,14 +12,14 @@ import (
"github.com/dustin/go-humanize"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/tenant"
"github.com/grafana/dskit/user"
"github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/model/timestamp"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/user"
"golang.org/x/sync/semaphore"
"github.com/grafana/loki/pkg/logproto"

@ -8,11 +8,11 @@ import (
"testing"
"time"
"github.com/grafana/dskit/user"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"go.uber.org/atomic"
"gopkg.in/yaml.v2"

@ -9,11 +9,11 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/gogo/protobuf/proto"
"github.com/grafana/dskit/httpgrpc"
"github.com/opentracing/opentracing-go"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/common/model"
"github.com/weaveworks/common/httpgrpc"
"golang.org/x/sync/errgroup"
"github.com/grafana/dskit/tenant"

@ -7,11 +7,11 @@ import (
"time"
"github.com/go-kit/log"
"github.com/grafana/dskit/user"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/testutil"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/loghttp"
"github.com/grafana/loki/pkg/logproto"

@ -4,9 +4,9 @@ import (
"context"
"time"
"github.com/grafana/dskit/instrument"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/weaveworks/common/instrument"
)
// InstrumentMiddleware can be inserted into the middleware chain to expose timing information.

@ -3,8 +3,8 @@ package queryrangebase
import (
"net/http"
"github.com/grafana/dskit/middleware"
"github.com/grafana/dskit/tenant"
"github.com/weaveworks/common/middleware"
)
const (

@ -6,7 +6,7 @@ import (
"net/http/httptest"
"testing"
"github.com/weaveworks/common/user"
"github.com/grafana/dskit/user"
"github.com/stretchr/testify/assert"
)

@ -14,12 +14,12 @@ import (
"time"
"github.com/gogo/status"
"github.com/grafana/dskit/httpgrpc"
jsoniter "github.com/json-iterator/go"
"github.com/opentracing/opentracing-go"
otlog "github.com/opentracing/opentracing-go/log"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/timestamp"
"github.com/weaveworks/common/httpgrpc"
"github.com/grafana/loki/pkg/logproto"
"github.com/grafana/loki/pkg/util"

@ -8,11 +8,11 @@ import (
"strconv"
"testing"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/user"
jsoniter "github.com/json-iterator/go"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/logproto"
)

@ -14,6 +14,8 @@ import (
"github.com/gogo/protobuf/proto"
"github.com/gogo/protobuf/types"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/user"
"github.com/opentracing/opentracing-go"
otlog "github.com/opentracing/opentracing-go/log"
"github.com/pkg/errors"
@ -24,8 +26,6 @@ import (
"github.com/prometheus/prometheus/promql"
"github.com/prometheus/prometheus/promql/parser"
"github.com/uber/jaeger-client-go"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/user"
"github.com/grafana/dskit/tenant"

@ -10,10 +10,10 @@ import (
"github.com/go-kit/log"
"github.com/gogo/protobuf/types"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/user"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/logproto"
"github.com/grafana/loki/pkg/logqlmodel/stats"

@ -5,9 +5,9 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/httpgrpc"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/weaveworks/common/httpgrpc"
util_log "github.com/grafana/loki/pkg/util/log"
)

@ -8,8 +8,8 @@ import (
"testing"
"github.com/go-kit/log"
"github.com/grafana/dskit/httpgrpc"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/httpgrpc"
"go.uber.org/atomic"
)

@ -23,10 +23,10 @@ import (
"time"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/user"
"github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/user"
)
const day = 24 * time.Hour

@ -9,11 +9,11 @@ import (
"github.com/dustin/go-humanize"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/tenant"
"github.com/pkg/errors"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/promql/parser"
"github.com/weaveworks/common/httpgrpc"
"github.com/grafana/loki/pkg/loghttp"
"github.com/grafana/loki/pkg/logql"

@ -12,9 +12,9 @@ import (
"time"
"github.com/go-kit/log"
"github.com/grafana/dskit/user"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/loghttp"
"github.com/grafana/loki/pkg/logproto"

@ -7,15 +7,15 @@ import (
"strings"
"time"
"github.com/weaveworks/common/user"
"github.com/grafana/dskit/user"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/httpgrpc"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/weaveworks/common/httpgrpc"
"github.com/grafana/loki/pkg/loghttp"
"github.com/grafana/loki/pkg/logql"

@ -15,15 +15,15 @@ import (
"testing"
"time"
"github.com/grafana/dskit/httpgrpc"
"github.com/grafana/dskit/middleware"
"github.com/grafana/dskit/user"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql"
"github.com/prometheus/prometheus/promql/parser"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/httpgrpc"
"github.com/weaveworks/common/middleware"
"github.com/weaveworks/common/user"
"github.com/grafana/loki/pkg/loghttp"
"github.com/grafana/loki/pkg/logproto"

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save