mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-22 07:20:59 +00:00
Added tests to cover invalid extended aggregation in signal fx format
Signed-off-by: Greg Chambers <gregory.w.chambers@gmail.com>
This commit is contained in:
parent
ba68944bec
commit
da94065b43
1 changed files with 12 additions and 0 deletions
|
@ -679,6 +679,18 @@ func TestLineToEvents(t *testing.T) {
|
|||
"datadog gauge with invalid extended aggregation values": {
|
||||
in: "foo_gauge:0.5:120:3000:10:20000:0.01|g|#tag1:bar,tag2:baz",
|
||||
},
|
||||
"datadog timing with extended aggregation values and invalid signalfx tags": {
|
||||
in: "foo.[tag1=bar,tag2=baz]test:0.5:120:3000:10:20000:0.01|ms",
|
||||
},
|
||||
"SignalFX counter with invalid Datadog style extended aggregation values": {
|
||||
in: "foo.[tag1=bar,tag2=baz]test:0.5:120:3000:10:20000:0.01|c",
|
||||
},
|
||||
"SignalFX no tags counter with invalid Datadog style extended aggregation values": {
|
||||
in: "foo.[]test:0.5:120:3000:10:20000:0.01|c",
|
||||
},
|
||||
"SignalFX no tags with invalid Datadog style extended aggregation values and timings type": {
|
||||
in: "foo.[]test:0.5:120:3000:10:20000:0.01|ms",
|
||||
},
|
||||
"timings with sampling factor": {
|
||||
in: "foo.timing:0.5|ms|@0.1",
|
||||
out: event.Events{
|
||||
|
|
Loading…
Reference in a new issue