Minor fixups

Signed-off-by: Tony Wooster <twooster@gmail.com>
This commit is contained in:
Tony Wooster 2019-09-19 18:31:04 +02:00
parent a4b92689bc
commit df740e7778
2 changed files with 3 additions and 3 deletions

View file

@ -149,7 +149,7 @@ func TestHandlePacket(t *testing.T) {
},
}, {
name: "influxdb tag extension",
in: "foo#tag1=bar,tag2=baz:100|c",
in: "foo,tag1=bar,tag2=baz:100|c",
out: Events{
&CounterEvent{
metricName: "foo",
@ -159,7 +159,7 @@ func TestHandlePacket(t *testing.T) {
},
}, {
name: "influxdb tag extension with tag keys unsupported by prometheus",
in: "foo#09digits=0,tag.with.dots=1:100|c",
in: "foo,09digits=0,tag.with.dots=1:100|c",
out: Events{
&CounterEvent{
metricName: "foo",

View file

@ -381,7 +381,7 @@ func lineToEvents(line string) Events {
// don't allow mixed tagging styles
if len(labels) > 0 {
sampleErrors.WithLabelValues("malformed_line").Inc()
sampleErrors.WithLabelValues("mixed_tagging_styles").Inc()
log.Debugln("Bad line (multiple tagging styles) from StatsD:", line)
return events
}