mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-29 02:31:00 +00:00
Minor fixups
Signed-off-by: Tony Wooster <twooster@gmail.com>
This commit is contained in:
parent
a4b92689bc
commit
df740e7778
2 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue