mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 22:07:27 -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 (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/prometheus/common/model"
|
||||
|
||||
"github.com/prometheus/prometheus/model/histogram"
|
||||
"github.com/prometheus/prometheus/model/labels"
|
||||
"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)
|
||||
for j := range buckets {
|
||||
lbls[model.BucketLabel] = fmt.Sprintf("%d", j)
|
||||
lbls[model.BucketLabel] = fmt.Sprintf("%g", j)
|
||||
series = append(series, RefSeries{
|
||||
Ref: ref,
|
||||
Labels: labels.FromMap(lbls),
|
||||
|
|
Loading…
Reference in a new issue