THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
MetricRegistry
is a class responsible for metrics registering, there is a metrics container in it. It provides register method for each type of measurable metric, registering metrics will put metrics to the metrics container.
Code Block | ||
---|---|---|
| ||
public class MetricRegistry {
/** Map of gauge metrics. */
private final Map<String, Gauge<?>> gauges = new HashMap<>();
/** Map of counter metrics. */
private final Map<String, Counter> counters = new HashMap<>();
/** Register gauge metric. */
public void gauge(String name, Gauge gauge) {}
/** Register counter metric. */
public void counter(String name, Counter counter) {}
} |
MetricsReporter
MetricsReporter
is used to report metrics to external backend, Paimon will implement an out of box reporter as JMX `MetricsReporter`.
Code Block |
---|
public interface MetricsReporter { /** Configure reporter after instantiating it.*/ void open(); /** Closes this reporter. */ void close(); /** Report the current measurements. This method is called periodically by the Metrics. */ void report(); } |
CommitMetrics / ScanMetrics / CompactionMetrics
...