forked from mirrors/statsd_exporter
Merge pull request #441 from pedro-stanaka/fix/benchmarks-mapper
Fixing broken benchmark for mapper
This commit is contained in:
commit
d90c8ff92d
1 changed files with 5 additions and 1 deletions
|
@ -18,6 +18,8 @@ import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/go-kit/log"
|
||||||
|
|
||||||
"github.com/prometheus/statsd_exporter/pkg/mappercache/lru"
|
"github.com/prometheus/statsd_exporter/pkg/mappercache/lru"
|
||||||
"github.com/prometheus/statsd_exporter/pkg/mappercache/randomreplacement"
|
"github.com/prometheus/statsd_exporter/pkg/mappercache/randomreplacement"
|
||||||
)
|
)
|
||||||
|
@ -242,7 +244,9 @@ mappings:
|
||||||
"foo.bar.baz",
|
"foo.bar.baz",
|
||||||
}
|
}
|
||||||
|
|
||||||
mapper := MetricMapper{}
|
mapper := MetricMapper{
|
||||||
|
Logger: log.NewNopLogger(),
|
||||||
|
}
|
||||||
err := mapper.InitFromYAMLString(config)
|
err := mapper.InitFromYAMLString(config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.Fatalf("Config load error: %s %s", config, err)
|
b.Fatalf("Config load error: %s %s", config, err)
|
||||||
|
|
Loading…
Reference in a new issue