Skip to content

Commit

Permalink
Merge pull request #413 from mrueg/replace-go-kit
Browse files Browse the repository at this point in the history
Replace go-kit/kit with go-kit/log, update dependencies
  • Loading branch information
beorn7 committed Aug 12, 2021
2 parents c60807e + ed2c399 commit 2ad04a4
Show file tree
Hide file tree
Showing 12 changed files with 297 additions and 248 deletions.
4 changes: 2 additions & 2 deletions api/v1/api.go
Expand Up @@ -18,8 +18,8 @@ import (
"net/http"
"time"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/prometheus/common/route"

dto "github.com/prometheus/client_model/go"
Expand Down
2 changes: 1 addition & 1 deletion api/v1/api_test.go
Expand Up @@ -21,7 +21,7 @@ import (
"testing"
"time"

"github.com/go-kit/kit/log"
"github.com/go-kit/log"
//nolint:staticcheck // Ignore SA1019. Dependencies use the deprecated package, so we have to, too.
"github.com/golang/protobuf/proto"

Expand Down
10 changes: 5 additions & 5 deletions go.mod
@@ -1,13 +1,13 @@
module github.com/prometheus/pushgateway

require (
github.com/go-kit/kit v0.10.0
github.com/golang/protobuf v1.5.1
github.com/go-kit/log v0.1.0
github.com/golang/protobuf v1.5.2
github.com/matttproud/golang_protobuf_extensions v1.0.1
github.com/prometheus/client_golang v1.10.0
github.com/prometheus/client_golang v1.11.0
github.com/prometheus/client_model v0.2.0
github.com/prometheus/common v0.19.0
github.com/prometheus/exporter-toolkit v0.5.1
github.com/prometheus/common v0.30.0
github.com/prometheus/exporter-toolkit v0.6.1
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546
gopkg.in/alecthomas/kingpin.v2 v2.2.6
Expand Down
501 changes: 275 additions & 226 deletions go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions handler/delete.go
Expand Up @@ -19,8 +19,8 @@ import (
"sync"
"time"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/prometheus/common/route"

"github.com/prometheus/pushgateway/storage"
Expand Down
2 changes: 1 addition & 1 deletion handler/handler_test.go
Expand Up @@ -23,7 +23,7 @@ import (
"testing"
"time"

"github.com/go-kit/kit/log"
"github.com/go-kit/log"
//nolint:staticcheck // Ignore SA1019. Dependencies use the deprecated package, so we have to, too.
"github.com/golang/protobuf/proto"
"github.com/matttproud/golang_protobuf_extensions/pbutil"
Expand Down
4 changes: 2 additions & 2 deletions handler/push.go
Expand Up @@ -23,8 +23,8 @@ import (
"sync"
"time"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/matttproud/golang_protobuf_extensions/pbutil"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/expfmt"
Expand Down
4 changes: 2 additions & 2 deletions handler/status.go
Expand Up @@ -23,8 +23,8 @@ import (
"strconv"
"time"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/go-kit/log"
"github.com/go-kit/log/level"

"github.com/prometheus/common/version"
"github.com/prometheus/pushgateway/storage"
Expand Down
4 changes: 2 additions & 2 deletions handler/wipe.go
Expand Up @@ -17,8 +17,8 @@ import (
"net/http"
"time"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/go-kit/log"
"github.com/go-kit/log/level"

"github.com/prometheus/pushgateway/storage"
)
Expand Down
4 changes: 2 additions & 2 deletions main.go
Expand Up @@ -27,8 +27,8 @@ import (
"syscall"
"time"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/promlog"
Expand Down
4 changes: 2 additions & 2 deletions storage/diskmetricstore.go
Expand Up @@ -25,8 +25,8 @@ import (
"sync"
"time"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/go-kit/log"
"github.com/go-kit/log/level"

//nolint:staticcheck // Ignore SA1019. Dependencies use the deprecated package, so we have to, too.
"github.com/golang/protobuf/proto"
Expand Down
2 changes: 1 addition & 1 deletion storage/diskmetricstore_test.go
Expand Up @@ -23,7 +23,7 @@ import (
"testing"
"time"

"github.com/go-kit/kit/log"
"github.com/go-kit/log"
//nolint:staticcheck // Ignore SA1019. Dependencies use the deprecated package, so we have to, too.
"github.com/golang/protobuf/proto"
"github.com/prometheus/client_golang/prometheus"
Expand Down

0 comments on commit 2ad04a4

Please sign in to comment.