This PR updates the Prometheus dependency in Loki and Promtail. The PR is required so that we can also update Grafana Agent to the latest Prometheus. Unfortunately, Promtail and Loki share the same go.mod file.
* Upgrade Cortex, Prometheus and Thanos
Signed-off-by: Marco Pracucci <marco@pracucci.com>
* Fixed imported ordering
Signed-off-by: Marco Pracucci <marco@pracucci.com>
* Fixed data type used for series ref when recovering from checkpoint/WAL
Signed-off-by: Marco Pracucci <marco@pracucci.com>
* Upgraded Thanos to fix arm build
Signed-off-by: Marco Pracucci <marco@pracucci.com>
* Run go mod tidy
Signed-off-by: Marco Pracucci <marco@pracucci.com>
* update cortex and thanos to newer version
* pin k8s.io/apimachinery
* fixes for newer libs
* add missing method to mock wal data collector
* fixing test by using different gokit level pkg
* make check-mod
* Upgrade Cortex in Loki
Signed-off-by: Marco Pracucci <marco@pracucci.com>
* proto compat
* gofmt
* changelog for deprecated querier.split-queries-by-day
Co-authored-by: Marco Pracucci <marco@pracucci.com>
* update vendored cortex and add new replace overrides
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
* update upstream function to new package
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
* update all moved functions
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
* update math to util_math
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
* loki: use new runtimeconfig package from Cortex
runtimeconfig is a generalization of previous "overrides" mechanism,
and can be used not for per-tenant limits, but other parts of Loki
too (only one additional usage for now is "multi" KV client).
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
* go mod tidy, go mod vendor
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
* Removed RuntimeConfig from Ingester dependencies.
Ingester already depends on RuntimeConfig via Store and Overrides mechanism.
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
* Removed extra new line.
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
* Remove unused method.
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
* Fix broken code after rebasing.
Removed incorrect comment.
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
* Updated docs with section about runtime configuration. Mostly copied from Cortex.
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
* go mod tidy, go mod vendor
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
* Updated Cortex to current master.
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
* Go mod tidy, vendor
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
* go mod files added. dep removed
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Magically got prometheus version to stick
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Cortex updated and prometheus updated
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Updated prometheus dependency
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added additional deps
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added two replaces from Gopkg.toml. Tests passing
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added deps
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Updated build image to 1.12
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Updated golangci-lint to use vendored dependencies
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added check-mod makefile step and referenced in drone and circle ci configs
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Updated loki-build-image to 1.12
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Fixed linting error. Force go111module on for linting
Signed-off-by: Joe Elliott <number101010@gmail.com>
* go mod vendor
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Forced the inclusion of modtimevfs
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Pin client-go due to issue with v12 go.mod
Signed-off-by: Joe Elliott <number101010@gmail.com>
* go mod tidy
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added check-mod to drone
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Re-readded correct golang client
Signed-off-by: Joe Elliott <number101010@gmail.com>
* go mod tidy
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Pinned golang/x/net to avoid proxy errors
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Removed check-mod from all. Not necessary for tests
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Updated go.sum to match new pin
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Upgraded proto to match build image
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Force check-mod to wait til after test and lint are successful
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added mod vendor to go builds to force usage of vendored dependencies
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Turn on gomodules on all builds
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Revert "Added mod vendor to go builds to force usage of vendored dependencies"
This reverts commit 65865a24c9a23133e0fa52942f2828ead7c22147.
* Moved builds out of the gopath to enforce vendor usage
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Revert "Turn on gomodules on all builds"
This reverts commit b5847f0158e928e935e0b3c1b1d4eaba840ca3dc.
* Explicitly choose build image for docker driver
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Updated golang.org/x/sys to match prometheus's version to fix promtail windows compilation
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added fluentbit dependency
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added dependency management clause
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Updated go version in contributing
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added phony makefile targets
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Circle CI is increasingly failing linting
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Force vendored deps on builds
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added logcli to gitignore
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Reduced concurrency to help CircleCI
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Moved drone builds out of GOPATH to force use of go module
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added mod vendor to prevent go clean from redownloading all packages
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added to test as well
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Added mod-vendor to final go commands
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Moved fluent-bit out of GO_PATH to force go modules
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Pass mod vendor to the last holdout: go generate
Signed-off-by: Joe Elliott <number101010@gmail.com>
* Updated ugorji/go to 1.17 to avoid version regression
Signed-off-by: Joe Elliott <number101010@gmail.com>
* go mod tidy and go mod vendor for ugorji/go
Signed-off-by: Joe Elliott <number101010@gmail.com>