Skip to content

Commit

Permalink
Replace go-kit/kit with go-kit/log
Browse files Browse the repository at this point in the history
See also: prometheus/common#304

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
  • Loading branch information
mrueg committed Aug 4, 2021
1 parent c60807e commit 0dc0ac8
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 18 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
2 changes: 1 addition & 1 deletion go.mod
@@ -1,7 +1,7 @@
module github.com/prometheus/pushgateway

require (
github.com/go-kit/kit v0.10.0
github.com/go-kit/log v0.1.0
github.com/golang/protobuf v1.5.1
github.com/matttproud/golang_protobuf_extensions v1.0.1
github.com/prometheus/client_golang v1.10.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Expand Up @@ -62,6 +62,8 @@ github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/kit v0.10.0 h1:dXFJfIHVvUcpSgDOV+Ne6t7jXri8Tfv2uOLHUZ2XNuo=
github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o=
github.com/go-kit/log v0.1.0 h1:DGJh0Sm43HbOeYDNnVZFl8BvcYVvjD5bqYJvp0REbwQ=
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
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 h1:TrB8swr/68K7m9CcGut2g3UOihhbcbiMAYiuTXdEih4=
Expand Down
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 0dc0ac8

Please sign in to comment.