From bdd4a76348e202df731d8ae2120a7a27e96f2eb2 Mon Sep 17 00:00:00 2001 From: glightfoot Date: Mon, 15 Jun 2020 18:46:20 -0400 Subject: [PATCH] add more tests for metric type Signed-off-by: glightfoot --- pkg/mapper/mapper_test.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pkg/mapper/mapper_test.go b/pkg/mapper/mapper_test.go index e00ae8f..ca28897 100644 --- a/pkg/mapper/mapper_test.go +++ b/pkg/mapper/mapper_test.go @@ -644,6 +644,26 @@ mappings: - match: test.*.* match_metric_type: counter 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: {} `, },