mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-25 08:41:00 +00:00
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"
|
||||
"testing"
|
||||
|
||||
"github.com/go-kit/log"
|
||||
|
||||
"github.com/prometheus/statsd_exporter/pkg/mappercache/lru"
|
||||
"github.com/prometheus/statsd_exporter/pkg/mappercache/randomreplacement"
|
||||
)
|
||||
|
@ -242,7 +244,9 @@ mappings:
|
|||
"foo.bar.baz",
|
||||
}
|
||||
|
||||
mapper := MetricMapper{}
|
||||
mapper := MetricMapper{
|
||||
Logger: log.NewNopLogger(),
|
||||
}
|
||||
err := mapper.InitFromYAMLString(config)
|
||||
if err != nil {
|
||||
b.Fatalf("Config load error: %s %s", config, err)
|
||||
|
|
Loading…
Reference in a new issue