mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-30 03:01:00 +00:00
add more tests for metric type
Signed-off-by: glightfoot <glightfoot@rsglab.com>
This commit is contained in:
parent
77277a5150
commit
bdd4a76348
1 changed files with 20 additions and 0 deletions
|
@ -644,6 +644,26 @@ mappings:
|
||||||
- match: test.*.*
|
- match: test.*.*
|
||||||
match_metric_type: counter
|
match_metric_type: counter
|
||||||
name: "foo"
|
name: "foo"
|
||||||
|
labels: {}
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
// Config with good metric type observer.
|
||||||
|
{
|
||||||
|
config: `---
|
||||||
|
mappings:
|
||||||
|
- match: test.*.*
|
||||||
|
match_metric_type: observer
|
||||||
|
name: "foo"
|
||||||
|
labels: {}
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
// Config with good metric type timer.
|
||||||
|
{
|
||||||
|
config: `---
|
||||||
|
mappings:
|
||||||
|
- match: test.*.*
|
||||||
|
match_metric_type: timer
|
||||||
|
name: "foo"
|
||||||
labels: {}
|
labels: {}
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue