MeterFactory { public static Counter.Builder counter(String name) { return new Counter.Builder(name); }  static Counter.Builder counter(String name); static Gauge.Builder gauge(String name, Supplier<Double> supplier); static Histogram.Builder histogram(String name);  }
@Test public void testCounter() { final Counter counter1 = MeterFactory.counter("test_counter1") .tag("testA", "testB") .build(); testCounter(counter1, "test_counter1", new String[] {"testA", "testB"}, 0.0, CounterMode.INCREMENT); final Counter counter2 = MeterFactory.counter("test_counter2") .tag("testA", "testB") .mode(CounterMode.RATE) .build(); testCounter(counter2, "test_counter2", new String[] {"testA", "testB"}, 0.0, CounterMode.RATE); }