From df740e77785ce12b34a23082e1e243e20169fe1b Mon Sep 17 00:00:00 2001 From: Tony Wooster Date: Thu, 19 Sep 2019 18:31:04 +0200 Subject: [PATCH] Minor fixups Signed-off-by: Tony Wooster --- bridge_test.go | 4 ++-- exporter.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bridge_test.go b/bridge_test.go index 75826fa..e703c37 100644 --- a/bridge_test.go +++ b/bridge_test.go @@ -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", diff --git a/exporter.go b/exporter.go index 93e0ed2..a8dd607 100644 --- a/exporter.go +++ b/exporter.go @@ -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 }