...
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
Code Block |
---|
|
public class CommitMetrics {
private Metrics metrics;
private final String COMMIT_DURATION_METRIC = "commitDuration";
...
private void registerCommitMetrics(Metrics metrics) {
metrics.gauge(COMMIT_DURATION_METRIC, new CommitDurationGauge());
}
...
} |
Proposed Changes
Architecture
draw.io Diagram |
---|
border | true |
---|
| |
---|
diagramName | MetricsSystem |
---|
simpleViewer | false |
---|
width | |
---|
links | auto |
---|
tbstyle | top |
---|
lbox | true |
---|
diagramWidth | 1141 |
---|
revision | 2 |
---|
|
Image Removed
Metrics Register
Metrics value update
...