THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
public class MetricGroup { private final String groupName; /** Constructor of MetricGroup. */ public MetricGroup(String groupName) { this.groupName = groupName; getMetricsInstanceMetrics.getInstance().addGroup(groupName, this); } /** tags of metric group. */ private final Map<String, Set<String>> tags = new HashMap<>(); /** Map of gauge metrics. */ private final Map<String, Gauge<?>> gauges = new HashMap<>(); /** Map of counter metrics. */ private final Map<String, Counter> counters = new HashMap<>(); /** Map of counter metrics. */ private final Map<String, Histogram> histograms = new HashMap<>(); /** Register gauge metric. */ public void gauge(String name, Gauge gauge) {} /** Register counter metric. */ public void counter(String name, Counter counter) {} /** Register histogram metric. */ public void histogram(String name, Histogram counter) {} /** Add tag for metric group. */ public void addTag(String tag, String value) {} } |
...