From 1919ef1b31fdfbb15df940766bedfc8b95f314c6 Mon Sep 17 00:00:00 2001 From: re Date: Tue, 13 Dec 2022 11:48:40 +0300 Subject: [PATCH] repo fix --- .golangci.yml | 2 +- Dockerfile | 16 ++-- README.md | 18 ++-- api/prometheus/v1/api.go | 2 +- api/prometheus/v1/example_test.go | 4 +- examples/exemplars/main.go | 6 +- examples/gocollector/main.go | 6 +- examples/middleware/go.mod | 2 +- examples/middleware/go.sum | 14 ++-- .../httpmiddleware/httpmiddleware.go | 6 +- examples/middleware/main.go | 6 +- examples/random/main.go | 6 +- examples/simple/main.go | 7 +- go.mod | 7 +- go.sum | 82 ++++++++++++++++++- prometheus/README.md | 2 +- prometheus/collectors/collectors.go | 4 +- prometheus/collectors/dbstats_collector.go | 2 +- .../collectors/dbstats_collector_test.go | 2 +- prometheus/collectors/expvar_collector.go | 2 +- prometheus/collectors/go_collector_go116.go | 2 +- prometheus/collectors/go_collector_latest.go | 6 +- .../collectors/go_collector_latest_test.go | 4 +- prometheus/collectors/process_collector.go | 2 +- prometheus/desc.go | 2 +- prometheus/doc.go | 4 +- prometheus/example_clustermanager_test.go | 4 +- prometheus/example_metricvec_test.go | 2 +- prometheus/example_timer_complex_test.go | 2 +- prometheus/example_timer_gauge_test.go | 2 +- prometheus/example_timer_test.go | 2 +- prometheus/examples_test.go | 4 +- prometheus/expvar_collector_test.go | 2 +- prometheus/gen_go_collector_metrics_set.go | 6 +- prometheus/go_collector_go116.go | 2 +- prometheus/go_collector_latest.go | 4 +- prometheus/go_collector_latest_test.go | 2 +- prometheus/graphite/bridge.go | 2 +- prometheus/graphite/bridge_test.go | 2 +- prometheus/histogram_test.go | 2 +- prometheus/internal/go_collector_options.go | 2 +- prometheus/metric.go | 2 +- prometheus/promauto/auto.go | 14 ++-- prometheus/promauto/auto_test.go | 2 +- prometheus/promhttp/http.go | 2 +- prometheus/promhttp/http_test.go | 2 +- prometheus/promhttp/instrument_client.go | 2 +- prometheus/promhttp/instrument_client_test.go | 4 +- prometheus/promhttp/instrument_server.go | 2 +- prometheus/promhttp/instrument_server_test.go | 2 +- prometheus/promhttp/option.go | 2 +- prometheus/promhttp/option_test.go | 2 +- .../push/example_add_from_gatherer_test.go | 4 +- prometheus/push/examples_test.go | 4 +- prometheus/push/push.go | 2 +- prometheus/push/push_test.go | 2 +- prometheus/registry.go | 2 +- prometheus/registry_test.go | 4 +- prometheus/testutil/lint.go | 4 +- prometheus/testutil/lint_test.go | 2 +- prometheus/testutil/promlint/promlint_test.go | 2 +- prometheus/testutil/testutil.go | 4 +- prometheus/testutil/testutil_test.go | 2 +- prometheus/value.go | 2 +- prometheus/wrap.go | 2 +- 65 files changed, 204 insertions(+), 124 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 7e19530..a7d6671 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -42,6 +42,6 @@ linters-settings: errcheck: exclude: scripts/errcheck_excludes.txt goimports: - local-prefixes: github.com/prometheus/client_golang + local-prefixes: git.internal/re/client_golang gofumpt: extra-rules: true diff --git a/Dockerfile b/Dockerfile index 395a30a..d0e0968 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,22 +13,22 @@ # Builder image, where we build the example. FROM golang:1 AS builder -WORKDIR /go/src/github.com/prometheus/client_golang +WORKDIR /go/src/git.internal/re/client_golang COPY . . -WORKDIR /go/src/github.com/prometheus/client_golang/prometheus +WORKDIR /go/src/git.internal/re/client_golang/prometheus RUN go get -d -WORKDIR /go/src/github.com/prometheus/client_golang/examples/random +WORKDIR /go/src/git.internal/re/client_golang/examples/random RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w' -WORKDIR /go/src/github.com/prometheus/client_golang/examples/simple +WORKDIR /go/src/git.internal/re/client_golang/examples/simple RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w' -WORKDIR /go/src/github.com/prometheus/client_golang/examples/gocollector +WORKDIR /go/src/git.internal/re/client_golang/examples/gocollector RUN CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w' # Final image. FROM quay.io/prometheus/busybox:latest LABEL maintainer="The Prometheus Authors " -COPY --from=builder /go/src/github.com/prometheus/client_golang/examples/random \ - /go/src/github.com/prometheus/client_golang/examples/simple \ - /go/src/github.com/prometheus/client_golang/examples/gocollector ./ +COPY --from=builder /go/src/git.internal/re/client_golang/examples/random \ + /go/src/git.internal/re/client_golang/examples/simple \ + /go/src/git.internal/re/client_golang/examples/gocollector ./ EXPOSE 8080 CMD ["echo", "Please run an example. Either /random, /simple or /gocollector"] diff --git a/README.md b/README.md index ab2653d..9728e07 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Prometheus Go client library [![CircleCI](https://circleci.com/gh/prometheus/client_golang/tree/main.svg?style=svg)](https://circleci.com/gh/prometheus/client_golang/tree/main) -[![Go Report Card](https://goreportcard.com/badge/github.com/prometheus/client_golang)](https://goreportcard.com/report/github.com/prometheus/client_golang) -[![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang.svg)](https://pkg.go.dev/github.com/prometheus/client_golang) +[![Go Report Card](https://goreportcard.com/badge/git.internal/re/client_golang)](https://goreportcard.com/report/git.internal/re/client_golang) +[![Go Reference](https://pkg.go.dev/badge/git.internal/re/client_golang.svg)](https://pkg.go.dev/git.internal/re/client_golang) [![Slack](https://img.shields.io/badge/join%20slack-%23prometheus--client_golang-brightgreen.svg)](https://slack.cncf.io/) This is the [Go](http://golang.org) client library for @@ -23,33 +23,33 @@ CHANGELOG.md. Features that require breaking changes in the stable parts of the repository are being batched up and tracked in the [v2 -milestone](https://github.com/prometheus/client_golang/milestone/2). The v2 +milestone](https://git.internal/re/client_golang/milestone/2). The v2 development happens in a [separate -branch](https://github.com/prometheus/client_golang/tree/dev-v2) for the time +branch](https://git.internal/re/client_golang/tree/dev-v2) for the time being. v2 releases off that branch will happen once sufficient stability is reached. In view of the widespread use of this repository, v1 and v2 will coexist for a while to enable a convenient transition. ## Instrumenting applications -[![code-coverage](http://gocover.io/_badge/github.com/prometheus/client_golang/prometheus)](http://gocover.io/github.com/prometheus/client_golang/prometheus) [![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang/prometheus.svg)](https://pkg.go.dev/github.com/prometheus/client_golang/prometheus) +[![code-coverage](http://gocover.io/_badge/git.internal/re/client_golang/prometheus)](http://gocover.io/git.internal/re/client_golang/prometheus) [![Go Reference](https://pkg.go.dev/badge/git.internal/re/client_golang/prometheus.svg)](https://pkg.go.dev/git.internal/re/client_golang/prometheus) The -[`prometheus` directory](https://github.com/prometheus/client_golang/tree/main/prometheus) +[`prometheus` directory](https://git.internal/re/client_golang/tree/main/prometheus) contains the instrumentation library. See the [guide](https://prometheus.io/docs/guides/go-application/) on the Prometheus website to learn more about instrumenting applications. The -[`examples` directory](https://github.com/prometheus/client_golang/tree/main/examples) +[`examples` directory](https://git.internal/re/client_golang/tree/main/examples) contains simple examples of instrumented code. ## Client for the Prometheus HTTP API -[![code-coverage](http://gocover.io/_badge/github.com/prometheus/client_golang/api/prometheus/v1)](http://gocover.io/github.com/prometheus/client_golang/api/prometheus/v1) [![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang/api.svg)](https://pkg.go.dev/github.com/prometheus/client_golang/api) +[![code-coverage](http://gocover.io/_badge/git.internal/re/client_golang/api/prometheus/v1)](http://gocover.io/git.internal/re/client_golang/api/prometheus/v1) [![Go Reference](https://pkg.go.dev/badge/git.internal/re/client_golang/api.svg)](https://pkg.go.dev/git.internal/re/client_golang/api) The -[`api/prometheus` directory](https://github.com/prometheus/client_golang/tree/main/api/prometheus) +[`api/prometheus` directory](https://git.internal/re/client_golang/tree/main/api/prometheus) contains the client for the [Prometheus HTTP API](http://prometheus.io/docs/querying/api/). It allows you to write Go applications that query time series data from a Prometheus diff --git a/api/prometheus/v1/api.go b/api/prometheus/v1/api.go index f74139c..2adf048 100644 --- a/api/prometheus/v1/api.go +++ b/api/prometheus/v1/api.go @@ -31,7 +31,7 @@ import ( "github.com/prometheus/common/model" - "github.com/prometheus/client_golang/api" + "git.internal/re/client_golang/api" ) func init() { diff --git a/api/prometheus/v1/example_test.go b/api/prometheus/v1/example_test.go index 5876572..53ec174 100644 --- a/api/prometheus/v1/example_test.go +++ b/api/prometheus/v1/example_test.go @@ -24,8 +24,8 @@ import ( "github.com/prometheus/common/config" - "github.com/prometheus/client_golang/api" - v1 "github.com/prometheus/client_golang/api/prometheus/v1" + "git.internal/re/client_golang/api" + v1 "git.internal/re/client_golang/api/prometheus/v1" ) func ExampleAPI_query() { diff --git a/examples/exemplars/main.go b/examples/exemplars/main.go index 798c2df..46617bd 100644 --- a/examples/exemplars/main.go +++ b/examples/exemplars/main.go @@ -23,9 +23,9 @@ import ( "net/http" "time" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/collectors" - "github.com/prometheus/client_golang/prometheus/promhttp" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/collectors" + "git.internal/re/client_golang/prometheus/promhttp" ) func main() { diff --git a/examples/gocollector/main.go b/examples/gocollector/main.go index 9116314..48720ad 100644 --- a/examples/gocollector/main.go +++ b/examples/gocollector/main.go @@ -24,9 +24,9 @@ import ( "net/http" "regexp" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/collectors" - "github.com/prometheus/client_golang/prometheus/promhttp" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/collectors" + "git.internal/re/client_golang/prometheus/promhttp" ) var addr = flag.String("listen-address", ":8080", "The address to listen on for HTTP requests.") diff --git a/examples/middleware/go.mod b/examples/middleware/go.mod index 718b3ae..7b345b8 100644 --- a/examples/middleware/go.mod +++ b/examples/middleware/go.mod @@ -2,7 +2,7 @@ module github.com/jessicalins/instrumentation-practices-examples/middleware go 1.17 -require github.com/prometheus/client_golang v1.13.1 +require git.internal/re/client_golang v1.13.1 require ( github.com/beorn7/perks v1.0.1 // indirect diff --git a/examples/middleware/go.sum b/examples/middleware/go.sum index 5c974d2..540c6b0 100644 --- a/examples/middleware/go.sum +++ b/examples/middleware/go.sum @@ -156,13 +156,13 @@ github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_golang v1.13.1 h1:3gMjIY2+/hzmqhtUC/aQNYldJA6DtH3CgQvwS+02K1c= -github.com/prometheus/client_golang v1.13.1/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= +git.internal/re/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +git.internal/re/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +git.internal/re/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +git.internal/re/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +git.internal/re/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +git.internal/re/client_golang v1.13.1 h1:3gMjIY2+/hzmqhtUC/aQNYldJA6DtH3CgQvwS+02K1c= +git.internal/re/client_golang v1.13.1/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= diff --git a/examples/middleware/httpmiddleware/httpmiddleware.go b/examples/middleware/httpmiddleware/httpmiddleware.go index b3b228f..4073cf2 100644 --- a/examples/middleware/httpmiddleware/httpmiddleware.go +++ b/examples/middleware/httpmiddleware/httpmiddleware.go @@ -18,9 +18,9 @@ package httpmiddleware import ( "net/http" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/promauto" - "github.com/prometheus/client_golang/prometheus/promhttp" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/promauto" + "git.internal/re/client_golang/prometheus/promhttp" ) type Middleware interface { diff --git a/examples/middleware/main.go b/examples/middleware/main.go index 227ed7c..6f51f74 100644 --- a/examples/middleware/main.go +++ b/examples/middleware/main.go @@ -19,9 +19,9 @@ import ( "log" "net/http" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/collectors" - "github.com/prometheus/client_golang/prometheus/promhttp" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/collectors" + "git.internal/re/client_golang/prometheus/promhttp" "github.com/jessicalins/instrumentation-practices-examples/middleware/httpmiddleware" ) diff --git a/examples/random/main.go b/examples/random/main.go index b4f6280..5ff9c0b 100644 --- a/examples/random/main.go +++ b/examples/random/main.go @@ -25,9 +25,9 @@ import ( "net/http" "time" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/collectors" - "github.com/prometheus/client_golang/prometheus/promhttp" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/collectors" + "git.internal/re/client_golang/prometheus/promhttp" ) type metrics struct { diff --git a/examples/simple/main.go b/examples/simple/main.go index 972910c..e1bec58 100644 --- a/examples/simple/main.go +++ b/examples/simple/main.go @@ -16,12 +16,13 @@ package main import ( "flag" - "github.com/prometheus/client_golang/prometheus/collectors" "log" "net/http" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/promhttp" + "git.internal/re/client_golang/prometheus/collectors" + + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/promhttp" ) var addr = flag.String("listen-address", ":8080", "The address to listen on for HTTP requests.") diff --git a/go.mod b/go.mod index fe48634..72307eb 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/prometheus/client_golang +module git.internal/re/client_golang go 1.17 @@ -18,9 +18,10 @@ require ( require ( github.com/jpillora/backoff v1.0.0 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect - github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect + github.com/prometheus/client_golang v1.12.1 // indirect golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect golang.org/x/text v0.3.7 // indirect @@ -28,4 +29,4 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect ) -exclude github.com/prometheus/client_golang v1.12.1 +exclude git.internal/re/client_golang v1.12.1 diff --git a/go.sum b/go.sum index 44e3901..89c8daa 100644 --- a/go.sum +++ b/go.sum @@ -33,9 +33,17 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9 dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -53,8 +61,16 @@ github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7 github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -79,6 +95,7 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -91,6 +108,7 @@ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= @@ -112,12 +130,19 @@ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= @@ -125,24 +150,53 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.12.1 h1:ZiaPsmm9uiBeaSMRznKsCDNtPCS0T3JVDGF+06gjBzk= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4= github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= +github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= github.com/prometheus/common v0.37.0 h1:ccBbHCgIiT9uSoFY0vX8H3zsNR5eLt17/RQLUvn8pXE= github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.8.0 h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo= github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -154,6 +208,7 @@ go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= @@ -191,6 +246,7 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -198,6 +254,7 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -215,6 +272,7 @@ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f h1:oA4XRj0qtSt8Yo1Zms0CUlsT3KG69V2UGQWPBxujDmc= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= @@ -223,6 +281,7 @@ golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4Iltr golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b h1:clP8eMhB30EHdc0bd2Twtq6kgU7yl5ub2cQLSdrv1Dg= golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -233,11 +292,15 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -246,6 +309,7 @@ golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -258,17 +322,26 @@ golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -398,10 +471,15 @@ google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175 google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/prometheus/README.md b/prometheus/README.md index c67ff1b..0f1a81d 100644 --- a/prometheus/README.md +++ b/prometheus/README.md @@ -1 +1 @@ -See [![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang/prometheus.svg)](https://pkg.go.dev/github.com/prometheus/client_golang/prometheus). +See [![Go Reference](https://pkg.go.dev/badge/git.internal/re/client_golang/prometheus.svg)](https://pkg.go.dev/git.internal/re/client_golang/prometheus). diff --git a/prometheus/collectors/collectors.go b/prometheus/collectors/collectors.go index f4c9291..3c3fa1e 100644 --- a/prometheus/collectors/collectors.go +++ b/prometheus/collectors/collectors.go @@ -15,7 +15,7 @@ // conveniently collect process and Go-related metrics. package collectors -import "github.com/prometheus/client_golang/prometheus" +import "git.internal/re/client_golang/prometheus" // NewBuildInfoCollector returns a collector collecting a single metric // "go_build_info" with the constant value 1 and three labels "path", "version", @@ -25,7 +25,7 @@ import "github.com/prometheus/client_golang/prometheus" // the source repository (rather than the local file system). This is usually // accomplished by building from outside of GOPATH, specifying the full address // of the main package, e.g. "GO111MODULE=on go run -// github.com/prometheus/client_golang/examples/random". If built without Go +// git.internal/re/client_golang/examples/random". If built without Go // module support, all label values will be "unknown". If built with Go module // support but using the source code from the local file system, the "path" will // be set appropriately, but "checksum" will be empty and "version" will be diff --git a/prometheus/collectors/dbstats_collector.go b/prometheus/collectors/dbstats_collector.go index d5a7279..bef0904 100644 --- a/prometheus/collectors/dbstats_collector.go +++ b/prometheus/collectors/dbstats_collector.go @@ -16,7 +16,7 @@ package collectors import ( "database/sql" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) type dbStatsCollector struct { diff --git a/prometheus/collectors/dbstats_collector_test.go b/prometheus/collectors/dbstats_collector_test.go index 0698bb2..31e9e1f 100644 --- a/prometheus/collectors/dbstats_collector_test.go +++ b/prometheus/collectors/dbstats_collector_test.go @@ -17,7 +17,7 @@ import ( "database/sql" "testing" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) func TestDBStatsCollector(t *testing.T) { diff --git a/prometheus/collectors/expvar_collector.go b/prometheus/collectors/expvar_collector.go index 3aa8d05..e580328 100644 --- a/prometheus/collectors/expvar_collector.go +++ b/prometheus/collectors/expvar_collector.go @@ -13,7 +13,7 @@ package collectors -import "github.com/prometheus/client_golang/prometheus" +import "git.internal/re/client_golang/prometheus" // NewExpvarCollector returns a newly allocated expvar Collector. // diff --git a/prometheus/collectors/go_collector_go116.go b/prometheus/collectors/go_collector_go116.go index effc578..9303008 100644 --- a/prometheus/collectors/go_collector_go116.go +++ b/prometheus/collectors/go_collector_go116.go @@ -16,7 +16,7 @@ package collectors -import "github.com/prometheus/client_golang/prometheus" +import "git.internal/re/client_golang/prometheus" // NewGoCollector returns a collector that exports metrics about the current Go // process. This includes memory stats. To collect those, runtime.ReadMemStats diff --git a/prometheus/collectors/go_collector_latest.go b/prometheus/collectors/go_collector_latest.go index 246c5ea..2e3432a 100644 --- a/prometheus/collectors/go_collector_latest.go +++ b/prometheus/collectors/go_collector_latest.go @@ -19,8 +19,8 @@ package collectors import ( "regexp" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/internal" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/internal" ) var ( @@ -66,7 +66,7 @@ var ( // // NOTE(bwplotka): The above represents runtime.MemStats statistics, but they are // actually implemented using new runtime/metrics package. (except skipped go_memstats_gc_cpu_fraction -// -- see https://github.com/prometheus/client_golang/issues/842#issuecomment-861812034 for explanation). +// -- see https://git.internal/re/client_golang/issues/842#issuecomment-861812034 for explanation). // // Some users might want to disable this on collector level (although you can use scrape relabelling on Prometheus), // because similar metrics can be now obtained using WithGoCollectorRuntimeMetrics. Note that the semantics of new diff --git a/prometheus/collectors/go_collector_latest_test.go b/prometheus/collectors/go_collector_latest_test.go index 8ab3b94..c74ec76 100644 --- a/prometheus/collectors/go_collector_latest_test.go +++ b/prometheus/collectors/go_collector_latest_test.go @@ -25,8 +25,8 @@ import ( "sort" "testing" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/promhttp" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/promhttp" ) var baseMetrics = []string{ diff --git a/prometheus/collectors/process_collector.go b/prometheus/collectors/process_collector.go index 24558f5..2736ed4 100644 --- a/prometheus/collectors/process_collector.go +++ b/prometheus/collectors/process_collector.go @@ -13,7 +13,7 @@ package collectors -import "github.com/prometheus/client_golang/prometheus" +import "git.internal/re/client_golang/prometheus" // ProcessCollectorOpts defines the behavior of a process metrics collector // created with NewProcessCollector. diff --git a/prometheus/desc.go b/prometheus/desc.go index 8bc5e44..fcbbb6d 100644 --- a/prometheus/desc.go +++ b/prometheus/desc.go @@ -21,7 +21,7 @@ import ( "github.com/cespare/xxhash/v2" - "github.com/prometheus/client_golang/prometheus/internal" + "git.internal/re/client_golang/prometheus/internal" //nolint:staticcheck // Ignore SA1019. Need to keep deprecated package for compatibility. "github.com/golang/protobuf/proto" diff --git a/prometheus/doc.go b/prometheus/doc.go index 811072c..5a6c7c4 100644 --- a/prometheus/doc.go +++ b/prometheus/doc.go @@ -31,8 +31,8 @@ // "log" // "net/http" // -// "github.com/prometheus/client_golang/prometheus" -// "github.com/prometheus/client_golang/prometheus/promhttp" +// "git.internal/re/client_golang/prometheus" +// "git.internal/re/client_golang/prometheus/promhttp" // ) // // type metrics struct { diff --git a/prometheus/example_clustermanager_test.go b/prometheus/example_clustermanager_test.go index 92b61ca..f5dba80 100644 --- a/prometheus/example_clustermanager_test.go +++ b/prometheus/example_clustermanager_test.go @@ -17,8 +17,8 @@ import ( "log" "net/http" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/promhttp" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/promhttp" ) // ClusterManager is an example for a system that might have been built without diff --git a/prometheus/example_metricvec_test.go b/prometheus/example_metricvec_test.go index 173196d..9287b82 100644 --- a/prometheus/example_metricvec_test.go +++ b/prometheus/example_metricvec_test.go @@ -21,7 +21,7 @@ import ( dto "github.com/prometheus/client_model/go" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) // Info implements an info pseudo-metric, which is modeled as a Gauge that diff --git a/prometheus/example_timer_complex_test.go b/prometheus/example_timer_complex_test.go index a20498a..c51b449 100644 --- a/prometheus/example_timer_complex_test.go +++ b/prometheus/example_timer_complex_test.go @@ -16,7 +16,7 @@ package prometheus_test import ( "net/http" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) // apiRequestDuration tracks the duration separate for each HTTP status diff --git a/prometheus/example_timer_gauge_test.go b/prometheus/example_timer_gauge_test.go index 85afdac..33ca6a9 100644 --- a/prometheus/example_timer_gauge_test.go +++ b/prometheus/example_timer_gauge_test.go @@ -16,7 +16,7 @@ package prometheus_test import ( "os" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) // If a function is called rarely (i.e. not more often than scrapes diff --git a/prometheus/example_timer_test.go b/prometheus/example_timer_test.go index e851a57..225b3d1 100644 --- a/prometheus/example_timer_test.go +++ b/prometheus/example_timer_test.go @@ -17,7 +17,7 @@ import ( "math/rand" "time" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) var requestDuration = prometheus.NewHistogram(prometheus.HistogramOpts{ diff --git a/prometheus/examples_test.go b/prometheus/examples_test.go index a868262..156a06b 100644 --- a/prometheus/examples_test.go +++ b/prometheus/examples_test.go @@ -28,8 +28,8 @@ import ( dto "github.com/prometheus/client_model/go" "github.com/prometheus/common/expfmt" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/promhttp" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/promhttp" ) func ExampleGauge() { diff --git a/prometheus/expvar_collector_test.go b/prometheus/expvar_collector_test.go index 6bcd9b6..c997f35 100644 --- a/prometheus/expvar_collector_test.go +++ b/prometheus/expvar_collector_test.go @@ -21,7 +21,7 @@ import ( dto "github.com/prometheus/client_model/go" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) func ExampleNewExpvarCollector() { diff --git a/prometheus/gen_go_collector_metrics_set.go b/prometheus/gen_go_collector_metrics_set.go index 74b67ac..de6daab 100644 --- a/prometheus/gen_go_collector_metrics_set.go +++ b/prometheus/gen_go_collector_metrics_set.go @@ -28,8 +28,8 @@ import ( "strings" "text/template" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/internal" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/internal" "github.com/hashicorp/go-version" ) @@ -137,7 +137,7 @@ func rmCardinality() int { } // Prometheus also doesn't have buckets for -Inf, so they need to be omitted. // See the following PR for more information: - // https://github.com/prometheus/client_golang/pull/1049 + // https://git.internal/re/client_golang/pull/1049 if buckets[0] == math.Inf(-1) { cardinality-- } diff --git a/prometheus/go_collector_go116.go b/prometheus/go_collector_go116.go index 897a6e9..2a84adc 100644 --- a/prometheus/go_collector_go116.go +++ b/prometheus/go_collector_go116.go @@ -46,7 +46,7 @@ func NewGoCollector() Collector { eval func(*runtime.MemStats) float64 valType ValueType }{ - // This metric is omitted in Go1.17+, see https://github.com/prometheus/client_golang/issues/842#issuecomment-861812034 + // This metric is omitted in Go1.17+, see https://git.internal/re/client_golang/issues/842#issuecomment-861812034 desc: NewDesc( memstatNamespace("gc_cpu_fraction"), "The fraction of this program's available CPU time used by the GC since the program started.", diff --git a/prometheus/go_collector_latest.go b/prometheus/go_collector_latest.go index 3a2d55e..0f087fe 100644 --- a/prometheus/go_collector_latest.go +++ b/prometheus/go_collector_latest.go @@ -27,7 +27,7 @@ import ( "github.com/golang/protobuf/proto" dto "github.com/prometheus/client_model/go" - "github.com/prometheus/client_golang/prometheus/internal" + "git.internal/re/client_golang/prometheus/internal" ) const ( @@ -447,7 +447,7 @@ func memStatsFromRM(ms *runtime.MemStats, rm map[string]*metrics.Sample) { // N.B. GCCPUFraction is intentionally omitted. This metric is not useful, // and often misleading due to the fact that it's an average over the lifetime // of the process. - // See https://github.com/prometheus/client_golang/issues/842#issuecomment-861812034 + // See https://git.internal/re/client_golang/issues/842#issuecomment-861812034 // for more details. ms.GCCPUFraction = 0 } diff --git a/prometheus/go_collector_latest_test.go b/prometheus/go_collector_latest_test.go index d64120c..8071ee5 100644 --- a/prometheus/go_collector_latest_test.go +++ b/prometheus/go_collector_latest_test.go @@ -27,7 +27,7 @@ import ( dto "github.com/prometheus/client_model/go" - "github.com/prometheus/client_golang/prometheus/internal" + "git.internal/re/client_golang/prometheus/internal" ) func TestRmForMemStats(t *testing.T) { diff --git a/prometheus/graphite/bridge.go b/prometheus/graphite/bridge.go index 84eac0d..1c4c136 100644 --- a/prometheus/graphite/bridge.go +++ b/prometheus/graphite/bridge.go @@ -30,7 +30,7 @@ import ( dto "github.com/prometheus/client_model/go" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) const ( diff --git a/prometheus/graphite/bridge_test.go b/prometheus/graphite/bridge_test.go index df0cfff..df67b89 100644 --- a/prometheus/graphite/bridge_test.go +++ b/prometheus/graphite/bridge_test.go @@ -31,7 +31,7 @@ import ( "github.com/prometheus/common/model" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) func TestSanitize(t *testing.T) { diff --git a/prometheus/histogram_test.go b/prometheus/histogram_test.go index 0e1317e..c34cabc 100644 --- a/prometheus/histogram_test.go +++ b/prometheus/histogram_test.go @@ -29,7 +29,7 @@ import ( "github.com/golang/protobuf/proto" "google.golang.org/protobuf/types/known/timestamppb" - "github.com/prometheus/client_golang/prometheus/internal" + "git.internal/re/client_golang/prometheus/internal" dto "github.com/prometheus/client_model/go" ) diff --git a/prometheus/internal/go_collector_options.go b/prometheus/internal/go_collector_options.go index 723b45d..18d02a6 100644 --- a/prometheus/internal/go_collector_options.go +++ b/prometheus/internal/go_collector_options.go @@ -22,7 +22,7 @@ type GoCollectorRule struct { // GoCollectorOptions should not be used be directly by anything, except `collectors` package. // Use it via collectors package instead. See issue -// https://github.com/prometheus/client_golang/issues/1030. +// https://git.internal/re/client_golang/issues/1030. // // This is internal, so external users only can use it via `collector.WithGoCollector*` methods type GoCollectorOptions struct { diff --git a/prometheus/metric.go b/prometheus/metric.go index b5119c5..772a1fb 100644 --- a/prometheus/metric.go +++ b/prometheus/metric.go @@ -185,7 +185,7 @@ func (m *withExemplarsMetric) Write(pb *dto.Metric) error { if i < len(pb.Histogram.Bucket) { pb.Histogram.Bucket[i].Exemplar = e } else { - // The +Inf bucket should be explicitly added if there is an exemplar for it, similar to non-const histogram logic in https://github.com/prometheus/client_golang/blob/main/prometheus/histogram.go#L357-L365. + // The +Inf bucket should be explicitly added if there is an exemplar for it, similar to non-const histogram logic in https://git.internal/re/client_golang/blob/main/prometheus/histogram.go#L357-L365. b := &dto.Bucket{ CumulativeCount: proto.Uint64(pb.Histogram.GetSampleCount()), UpperBound: proto.Float64(math.Inf(1)), diff --git a/prometheus/promauto/auto.go b/prometheus/promauto/auto.go index 8031e87..cbeb11a 100644 --- a/prometheus/promauto/auto.go +++ b/prometheus/promauto/auto.go @@ -31,9 +31,9 @@ // "math/rand" // "net/http" // -// "github.com/prometheus/client_golang/prometheus" -// "github.com/prometheus/client_golang/prometheus/promauto" -// "github.com/prometheus/client_golang/prometheus/promhttp" +// "git.internal/re/client_golang/prometheus" +// "git.internal/re/client_golang/prometheus/promauto" +// "git.internal/re/client_golang/prometheus/promhttp" // ) // // var histogram = promauto.NewHistogram(prometheus.HistogramOpts{ @@ -62,9 +62,9 @@ // "fmt" // "net/http" // -// "github.com/prometheus/client_golang/prometheus" -// "github.com/prometheus/client_golang/prometheus/promauto" -// "github.com/prometheus/client_golang/prometheus/promhttp" +// "git.internal/re/client_golang/prometheus" +// "git.internal/re/client_golang/prometheus/promauto" +// "git.internal/re/client_golang/prometheus/promhttp" // ) // // func main() { @@ -159,7 +159,7 @@ // Enjoy promauto responsibly! package promauto -import "github.com/prometheus/client_golang/prometheus" +import "git.internal/re/client_golang/prometheus" // NewCounter works like the function of the same name in the prometheus package // but it automatically registers the Counter with the diff --git a/prometheus/promauto/auto_test.go b/prometheus/promauto/auto_test.go index 44805cb..9c8de1f 100644 --- a/prometheus/promauto/auto_test.go +++ b/prometheus/promauto/auto_test.go @@ -16,7 +16,7 @@ package promauto import ( "testing" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) func TestNil(t *testing.T) { diff --git a/prometheus/promhttp/http.go b/prometheus/promhttp/http.go index a4cc981..44c0b67 100644 --- a/prometheus/promhttp/http.go +++ b/prometheus/promhttp/http.go @@ -43,7 +43,7 @@ import ( "github.com/prometheus/common/expfmt" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) const ( diff --git a/prometheus/promhttp/http_test.go b/prometheus/promhttp/http_test.go index 36d231a..3a178fa 100644 --- a/prometheus/promhttp/http_test.go +++ b/prometheus/promhttp/http_test.go @@ -26,7 +26,7 @@ import ( dto "github.com/prometheus/client_model/go" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) type errorCollector struct{} diff --git a/prometheus/promhttp/instrument_client.go b/prometheus/promhttp/instrument_client.go index 2108678..2879453 100644 --- a/prometheus/promhttp/instrument_client.go +++ b/prometheus/promhttp/instrument_client.go @@ -19,7 +19,7 @@ import ( "net/http/httptrace" "time" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) // The RoundTripperFunc type is an adapter to allow the use of ordinary diff --git a/prometheus/promhttp/instrument_client_test.go b/prometheus/promhttp/instrument_client_test.go index ce7c4da..fc09486 100644 --- a/prometheus/promhttp/instrument_client_test.go +++ b/prometheus/promhttp/instrument_client_test.go @@ -24,8 +24,8 @@ import ( "testing" "time" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/testutil" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/testutil" dto "github.com/prometheus/client_model/go" "google.golang.org/protobuf/proto" diff --git a/prometheus/promhttp/instrument_server.go b/prometheus/promhttp/instrument_server.go index cca67a7..debd422 100644 --- a/prometheus/promhttp/instrument_server.go +++ b/prometheus/promhttp/instrument_server.go @@ -22,7 +22,7 @@ import ( dto "github.com/prometheus/client_model/go" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) // magicString is used for the hacky label test in checkLabels. Remove once fixed. diff --git a/prometheus/promhttp/instrument_server_test.go b/prometheus/promhttp/instrument_server_test.go index 2a2cbf2..b873fdb 100644 --- a/prometheus/promhttp/instrument_server_test.go +++ b/prometheus/promhttp/instrument_server_test.go @@ -21,7 +21,7 @@ import ( "net/http/httptest" "testing" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) func TestLabelCheck(t *testing.T) { diff --git a/prometheus/promhttp/option.go b/prometheus/promhttp/option.go index c590d91..834f107 100644 --- a/prometheus/promhttp/option.go +++ b/prometheus/promhttp/option.go @@ -16,7 +16,7 @@ package promhttp import ( "context" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) // Option are used to configure both handler (middleware) or round tripper. diff --git a/prometheus/promhttp/option_test.go b/prometheus/promhttp/option_test.go index 5d85655..1ab59e2 100644 --- a/prometheus/promhttp/option_test.go +++ b/prometheus/promhttp/option_test.go @@ -17,7 +17,7 @@ import ( "log" "net/http" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) func ExampleInstrumentHandlerWithExtraMethods() { diff --git a/prometheus/push/example_add_from_gatherer_test.go b/prometheus/push/example_add_from_gatherer_test.go index dd22b52..25fcf51 100644 --- a/prometheus/push/example_add_from_gatherer_test.go +++ b/prometheus/push/example_add_from_gatherer_test.go @@ -17,8 +17,8 @@ import ( "fmt" "time" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/push" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/push" ) var ( diff --git a/prometheus/push/examples_test.go b/prometheus/push/examples_test.go index fa5549a..30bfcc6 100644 --- a/prometheus/push/examples_test.go +++ b/prometheus/push/examples_test.go @@ -16,8 +16,8 @@ package push_test import ( "fmt" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/push" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/push" ) func ExamplePusher_Push() { diff --git a/prometheus/push/push.go b/prometheus/push/push.go index 29f6cd3..774debb 100644 --- a/prometheus/push/push.go +++ b/prometheus/push/push.go @@ -48,7 +48,7 @@ import ( "github.com/prometheus/common/expfmt" "github.com/prometheus/common/model" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) const ( diff --git a/prometheus/push/push_test.go b/prometheus/push/push_test.go index cc061cf..833795a 100644 --- a/prometheus/push/push_test.go +++ b/prometheus/push/push_test.go @@ -23,7 +23,7 @@ import ( "github.com/prometheus/common/expfmt" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) func TestPush(t *testing.T) { diff --git a/prometheus/registry.go b/prometheus/registry.go index 09e34d3..c3ebbf8 100644 --- a/prometheus/registry.go +++ b/prometheus/registry.go @@ -32,7 +32,7 @@ import ( dto "github.com/prometheus/client_model/go" - "github.com/prometheus/client_golang/prometheus/internal" + "git.internal/re/client_golang/prometheus/internal" ) const ( diff --git a/prometheus/registry_test.go b/prometheus/registry_test.go index 3faf67a..dcb4356 100644 --- a/prometheus/registry_test.go +++ b/prometheus/registry_test.go @@ -37,8 +37,8 @@ import ( "github.com/golang/protobuf/proto" "github.com/prometheus/common/expfmt" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/promhttp" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/promhttp" ) // uncheckedCollector wraps a Collector but its Describe method yields no Desc. diff --git a/prometheus/testutil/lint.go b/prometheus/testutil/lint.go index 8d2f055..16673c1 100644 --- a/prometheus/testutil/lint.go +++ b/prometheus/testutil/lint.go @@ -16,8 +16,8 @@ package testutil import ( "fmt" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/testutil/promlint" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/testutil/promlint" ) // CollectAndLint registers the provided Collector with a newly created pedantic diff --git a/prometheus/testutil/lint_test.go b/prometheus/testutil/lint_test.go index 547465d..465868e 100644 --- a/prometheus/testutil/lint_test.go +++ b/prometheus/testutil/lint_test.go @@ -16,7 +16,7 @@ package testutil import ( "testing" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) func TestCollectAndLintGood(t *testing.T) { diff --git a/prometheus/testutil/promlint/promlint_test.go b/prometheus/testutil/promlint/promlint_test.go index 70b1908..970dd80 100644 --- a/prometheus/testutil/promlint/promlint_test.go +++ b/prometheus/testutil/promlint/promlint_test.go @@ -19,7 +19,7 @@ import ( "strings" "testing" - "github.com/prometheus/client_golang/prometheus/testutil/promlint" + "git.internal/re/client_golang/prometheus/testutil/promlint" ) type test struct { diff --git a/prometheus/testutil/testutil.go b/prometheus/testutil/testutil.go index 91b83b5..963febc 100644 --- a/prometheus/testutil/testutil.go +++ b/prometheus/testutil/testutil.go @@ -48,8 +48,8 @@ import ( dto "github.com/prometheus/client_model/go" "github.com/prometheus/common/expfmt" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/internal" + "git.internal/re/client_golang/prometheus" + "git.internal/re/client_golang/prometheus/internal" ) // ToFloat64 collects all Metrics from the provided Collector. It expects that diff --git a/prometheus/testutil/testutil_test.go b/prometheus/testutil/testutil_test.go index 2a46e5d..ac97ba9 100644 --- a/prometheus/testutil/testutil_test.go +++ b/prometheus/testutil/testutil_test.go @@ -20,7 +20,7 @@ import ( "strings" "testing" - "github.com/prometheus/client_golang/prometheus" + "git.internal/re/client_golang/prometheus" ) type untypedCollector struct{} diff --git a/prometheus/value.go b/prometheus/value.go index 2d3abc1..efd2d8a 100644 --- a/prometheus/value.go +++ b/prometheus/value.go @@ -23,7 +23,7 @@ import ( "github.com/golang/protobuf/proto" "google.golang.org/protobuf/types/known/timestamppb" - "github.com/prometheus/client_golang/prometheus/internal" + "git.internal/re/client_golang/prometheus/internal" dto "github.com/prometheus/client_model/go" ) diff --git a/prometheus/wrap.go b/prometheus/wrap.go index 1498ee1..acfb647 100644 --- a/prometheus/wrap.go +++ b/prometheus/wrap.go @@ -22,7 +22,7 @@ import ( dto "github.com/prometheus/client_model/go" - "github.com/prometheus/client_golang/prometheus/internal" + "git.internal/re/client_golang/prometheus/internal" ) // WrapRegistererWith returns a Registerer wrapping the provided