Commit 68c731d6 by Spencer Gibb

added test for metrics with period in name

parent 1a660214
...@@ -40,6 +40,13 @@ public class DefaultServerMetricNamingTests { ...@@ -40,6 +40,13 @@ public class DefaultServerMetricNamingTests {
} }
@Test @Test
public void nameWithPeriodWorks() {
MonitorConfig config = MonitorConfig.builder("test.Metric") .build();
String name = naming.getName(new Metric(config, System.currentTimeMillis(), 0));
assertThat(name, is(equalTo("servo.test.metric")));
}
@Test
public void typeTagWorks() { public void typeTagWorks() {
MonitorConfig config = MonitorConfig.builder("testMetric") MonitorConfig config = MonitorConfig.builder("testMetric")
.withTag(DataSourceType.KEY, DataSourceType.COUNTER.getValue()) .withTag(DataSourceType.KEY, DataSourceType.COUNTER.getValue())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment