forked from mirrors/statsd_exporter
add test for signalfx/dogstatsd mixed tags
Signed-off-by: glightfoot <glightfoot@rsglab.com>
This commit is contained in:
parent
b4ce2913fa
commit
aa591e3e8e
2 changed files with 5 additions and 1 deletions
|
@ -23,6 +23,7 @@ import (
|
|||
"github.com/go-kit/kit/log"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
dto "github.com/prometheus/client_model/go"
|
||||
|
||||
"github.com/prometheus/statsd_exporter/pkg/clock"
|
||||
"github.com/prometheus/statsd_exporter/pkg/event"
|
||||
"github.com/prometheus/statsd_exporter/pkg/exporter"
|
||||
|
@ -283,6 +284,10 @@ func TestHandlePacket(t *testing.T) {
|
|||
name: "librato/dogstatsd mixed tag styles without sampling",
|
||||
in: "foo#tag1=foo,tag3=bing:100|c|#tag1:bar,#tag2:baz",
|
||||
out: event.Events{},
|
||||
}, {
|
||||
name: "signalfx/dogstatsd mixed tag styles without sampling",
|
||||
in: "foo[tag1=foo,tag3=bing]:100|c|#tag1:bar,#tag2:baz",
|
||||
out: event.Events{},
|
||||
}, {
|
||||
name: "influxdb/dogstatsd mixed tag styles without sampling",
|
||||
in: "foo,tag1=foo,tag3=bing:100|c|#tag1:bar,#tag2:baz",
|
||||
|
|
|
@ -38,7 +38,6 @@ func benchmarkLineToEvents(times int, b *testing.B) {
|
|||
logger := log.NewNopLogger()
|
||||
|
||||
for n := 0; n < b.N; n++ {
|
||||
|
||||
for i := 0; i < times; i++ {
|
||||
for _, l := range input {
|
||||
line.LineToEvents(l, *sampleErrors, samplesReceived, tagErrors, tagsReceived, logger)
|
||||
|
|
Loading…
Reference in a new issue