mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix lint errors
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
d64d1c4c0a
commit
fdb1516af1
|
@ -17,11 +17,13 @@ package record
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/prometheus/common/model"
|
"github.com/prometheus/common/model"
|
||||||
|
|
||||||
"github.com/prometheus/prometheus/model/histogram"
|
"github.com/prometheus/prometheus/model/histogram"
|
||||||
"github.com/prometheus/prometheus/model/labels"
|
"github.com/prometheus/prometheus/model/labels"
|
||||||
"github.com/prometheus/prometheus/tsdb/chunks"
|
"github.com/prometheus/prometheus/tsdb/chunks"
|
||||||
|
@ -523,7 +525,7 @@ func BenchmarkWAL_HistogramEncoding(b *testing.B) {
|
||||||
}
|
}
|
||||||
lbls[model.MetricNameLabel] = fmt.Sprintf("series_%d_bucket", i)
|
lbls[model.MetricNameLabel] = fmt.Sprintf("series_%d_bucket", i)
|
||||||
for j := range buckets {
|
for j := range buckets {
|
||||||
lbls[model.BucketLabel] = fmt.Sprintf("%d", j)
|
lbls[model.BucketLabel] = fmt.Sprintf("%g", j)
|
||||||
series = append(series, RefSeries{
|
series = append(series, RefSeries{
|
||||||
Ref: ref,
|
Ref: ref,
|
||||||
Labels: labels.FromMap(lbls),
|
Labels: labels.FromMap(lbls),
|
||||||
|
|
Loading…
Reference in a new issue