From d2619d6dcec83bc3d2648bad2b38bf3e365db9a3 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 25 Nov 2019 15:22:10 +0200 Subject: [PATCH] vendor: update github.com/VictoriaMetrics/metrics from v1.9.0 to v1.9.1 --- app/vmselect/promql/exec_test.go | 16 ++++++++-------- app/vmselect/promql/rollup_test.go | 8 ++++---- go.mod | 2 +- go.sum | 4 ++-- .../VictoriaMetrics/metrics/histogram.go | 2 +- vendor/modules.txt | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app/vmselect/promql/exec_test.go b/app/vmselect/promql/exec_test.go index b7aea159f..16a95c3f0 100644 --- a/app/vmselect/promql/exec_test.go +++ b/app/vmselect/promql/exec_test.go @@ -2693,8 +2693,8 @@ func TestExecSuccess(t *testing.T) { t.Run(`histogram(scalar)`, func(t *testing.T) { t.Parallel() q := `sort(histogram(123)+( - label_set(0, "le", "1.2e2"), - label_set(0, "le", "1.4e2"), + label_set(0, "le", "1.0e2"), + label_set(0, "le", "1.5e2"), label_set(1, "le", "+Inf"), ))` r1 := netstorage.Result{ @@ -2705,7 +2705,7 @@ func TestExecSuccess(t *testing.T) { r1.MetricName.Tags = []storage.Tag{ { Key: []byte("le"), - Value: []byte("1.2e2"), + Value: []byte("1.0e2"), }, } r2 := netstorage.Result{ @@ -2716,7 +2716,7 @@ func TestExecSuccess(t *testing.T) { r2.MetricName.Tags = []storage.Tag{ { Key: []byte("le"), - Value: []byte("1.4e2"), + Value: []byte("1.5e2"), }, } r3 := netstorage.Result{ @@ -2740,9 +2740,9 @@ func TestExecSuccess(t *testing.T) { label_set(1.1, "xx", "yy"), alias(1.15, "foobar"), ))+( - label_set(0, "le", "9.8e-1"), + label_set(0, "le", "9.5e-1"), label_set(0, "le", "1.0e0"), - label_set(0, "le", "1.2e0"), + label_set(0, "le", "1.5e0"), label_set(1, "le", "+Inf"), ))` r1 := netstorage.Result{ @@ -2753,7 +2753,7 @@ func TestExecSuccess(t *testing.T) { r1.MetricName.Tags = []storage.Tag{ { Key: []byte("le"), - Value: []byte("9.8e-1"), + Value: []byte("9.5e-1"), }, } r2 := netstorage.Result{ @@ -2775,7 +2775,7 @@ func TestExecSuccess(t *testing.T) { r3.MetricName.Tags = []storage.Tag{ { Key: []byte("le"), - Value: []byte("1.2e0"), + Value: []byte("1.5e0"), }, } r4 := netstorage.Result{ diff --git a/app/vmselect/promql/rollup_test.go b/app/vmselect/promql/rollup_test.go index f28593901..cbb1bf1d9 100644 --- a/app/vmselect/promql/rollup_test.go +++ b/app/vmselect/promql/rollup_test.go @@ -847,9 +847,9 @@ func TestRollupFuncsNoWindow(t *testing.T) { func TestRollupBigNumberOfValues(t *testing.T) { const srcValuesCount = 1e4 rc := rollupConfig{ - Func: rollupDefault, - End: srcValuesCount, - Step: srcValuesCount / 5, + Func: rollupDefault, + End: srcValuesCount, + Step: srcValuesCount / 5, Window: srcValuesCount / 4, } rc.Timestamps = getTimestamps(rc.Start, rc.End, rc.Step) @@ -857,7 +857,7 @@ func TestRollupBigNumberOfValues(t *testing.T) { srcTimestamps := make([]int64, srcValuesCount) for i := 0; i < srcValuesCount; i++ { srcValues[i] = float64(i) - srcTimestamps[i] = int64(i/2) + srcTimestamps[i] = int64(i / 2) } values := rc.Do(nil, srcValues, srcTimestamps) valuesExpected := []float64{1, 4001, 8001, 9999, nan, nan} diff --git a/go.mod b/go.mod index 76d54bd74..3f7feb2a7 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ require ( cloud.google.com/go v0.49.0 // indirect cloud.google.com/go/storage v1.4.0 github.com/VictoriaMetrics/fastcache v1.5.2 - github.com/VictoriaMetrics/metrics v1.9.0 + github.com/VictoriaMetrics/metrics v1.9.1 github.com/aws/aws-sdk-go v1.25.37 github.com/cespare/xxhash/v2 v2.1.1 github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9 // indirect diff --git a/go.sum b/go.sum index 6c1885fb1..f29ef84fd 100644 --- a/go.sum +++ b/go.sum @@ -24,8 +24,8 @@ github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAE github.com/OneOfOne/xxhash v1.2.5/go.mod h1:eZbhyaAYD41SGSSsnmcpxVoRiQ/MPUTjUdIIOT9Um7Q= github.com/VictoriaMetrics/fastcache v1.5.2 h1:Erd8iIuBAL9kke8JzM4+WxkKuFkHh3ktwLanJvDgR44= github.com/VictoriaMetrics/fastcache v1.5.2/go.mod h1:+jv9Ckb+za/P1ZRg/sulP5Ni1v49daAVERr0H3CuscE= -github.com/VictoriaMetrics/metrics v1.9.0 h1:+dtL6fV2lXpPnZ2BoHskTBVWUFVtT69u5ZM0m02eDX4= -github.com/VictoriaMetrics/metrics v1.9.0/go.mod h1:LU2j9qq7xqZYXz8tF3/RQnB2z2MbZms5TDiIg9/NHiQ= +github.com/VictoriaMetrics/metrics v1.9.1 h1:6bkFBTSCZ3woLQ6+ZLRIvrYjGn7GDqOid297WiT38o4= +github.com/VictoriaMetrics/metrics v1.9.1/go.mod h1:LU2j9qq7xqZYXz8tF3/RQnB2z2MbZms5TDiIg9/NHiQ= github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8= github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/aws/aws-sdk-go v1.25.37 h1:gBtB/F3dophWpsUQKN/Kni+JzYEH2mGHF4hWNtfED1w= diff --git a/vendor/github.com/VictoriaMetrics/metrics/histogram.go b/vendor/github.com/VictoriaMetrics/metrics/histogram.go index b19efd6a0..2d5f80bfa 100644 --- a/vendor/github.com/VictoriaMetrics/metrics/histogram.go +++ b/vendor/github.com/VictoriaMetrics/metrics/histogram.go @@ -11,7 +11,7 @@ import ( const ( e10Min = -9 e10Max = 18 - decimalMultiplier = 5 + decimalMultiplier = 2 bucketSize = 9 * decimalMultiplier bucketsCount = e10Max - e10Min decimalPrecision = 0.01 / decimalMultiplier diff --git a/vendor/modules.txt b/vendor/modules.txt index 24061b0ea..9a363b454 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -12,7 +12,7 @@ cloud.google.com/go/storage github.com/BurntSushi/toml # github.com/VictoriaMetrics/fastcache v1.5.2 github.com/VictoriaMetrics/fastcache -# github.com/VictoriaMetrics/metrics v1.9.0 +# github.com/VictoriaMetrics/metrics v1.9.1 github.com/VictoriaMetrics/metrics # github.com/aws/aws-sdk-go v1.25.37 github.com/aws/aws-sdk-go/aws