forked from mirrors/statsd_exporter
Fixing broken benchmark for mapper
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
This commit is contained in:
parent
0d22f85f04
commit
6e341dd805
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