Skip to content

Commit

Permalink
Migrate to v0.41.0
Browse files Browse the repository at this point in the history
  • Loading branch information
codebien committed Nov 3, 2022
1 parent 6c1e7b9 commit 3c375b7
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 112 deletions.
8 changes: 5 additions & 3 deletions bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,21 @@ func newTestServer(tb testing.TB) *testServer {
w.WriteHeader(200)
atomic.AddInt64(ts.count, 1)
}))
registry := metrics.NewRegistry()
ch := make(chan metrics.SampleContainer)
tb.Cleanup(func() {
ts.server.Close()
close(ch) // this might need to be elsewhere
})
ts.vu = new(modulestest.VU)
ts.vu.StateField = new(lib.State)
ts.vu.CtxField = context.Background()
ts.vu.StateField.Tags = lib.NewTagMap(nil)

ts.vu.StateField = new(lib.State)
ts.vu.StateField.Transport = ts.server.Client().Transport
ts.vu.StateField.BPool = bpool.NewBufferPool(123)
ts.vu.StateField.Samples = ch
ts.vu.StateField.BuiltinMetrics = metrics.RegisterBuiltinMetrics(metrics.NewRegistry())
ts.vu.StateField.BuiltinMetrics = metrics.RegisterBuiltinMetrics(registry)
ts.vu.StateField.Tags = lib.NewVUStateTags(registry.RootTagSet())

go func() {
for range ch {
Expand Down
52 changes: 19 additions & 33 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,61 +1,47 @@
module github.com/grafana/xk6-client-prometheus-remote

go 1.17
go 1.18

require (
github.com/dop251/goja v0.0.0-20220405120441-9037c2b61cbf
github.com/dop251/goja v0.0.0-20221003171542-5ea1285e6c91
github.com/golang/protobuf v1.5.2
github.com/golang/snappy v0.0.4
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c
github.com/pkg/errors v0.9.1
github.com/prometheus/prometheus v1.8.2-0.20210621150501-ff58416a0b02
github.com/stretchr/testify v1.7.1
github.com/stretchr/testify v1.8.0
github.com/xhit/go-str2duration/v2 v2.0.0
go.k6.io/k6 v0.38.2
google.golang.org/protobuf v1.26.0
go.k6.io/k6 v0.41.0
google.golang.org/protobuf v1.27.1
)

require (
github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e // indirect
github.com/DataDog/datadog-go v3.2.0+incompatible // indirect
github.com/PuerkitoBio/goquery v1.8.0 // indirect
github.com/Azure/go-ntlmssp v0.0.0-20220621081337-cb9428e4ac1e // indirect
github.com/Soontao/goHttpDigestClient v0.0.0-20170320082612-6d28bb1415c5 // indirect
github.com/andybalholm/brotli v1.0.4 // indirect
github.com/andybalholm/cascadia v1.3.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91 // indirect
github.com/dlclark/regexp2 v1.7.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/go-sourcemap/sourcemap v2.1.4-0.20211119122758-180fcef48034+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d // indirect
github.com/jhump/protoreflect v1.12.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/klauspost/compress v1.15.1 // indirect
github.com/klauspost/compress v1.15.11 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mstoykov/envconfig v1.4.1-0.20220114105314-765c6d8c76f1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mstoykov/atlas v0.0.0-20220808085829-90340e9998bd // indirect
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
github.com/nxadm/tail v1.4.8 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.18.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/cobra v1.4.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tidwall/gjson v1.14.0 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd // indirect
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/crypto v0.0.0-20220926161630-eccd6366d1be // indirect
golang.org/x/net v0.0.0-20221002022538-bcab6841153b // indirect
golang.org/x/sys v0.0.0-20220928140112-f11e5e49a4ec // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 // indirect
google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08 // indirect
google.golang.org/grpc v1.45.0 // indirect
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af // indirect
gopkg.in/guregu/null.v3 v3.3.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 3c375b7

Please sign in to comment.