Class LoggingMetricsReporter
java.lang.Object
org.apache.polaris.service.metrics.LoggingMetricsReporter
- All Implemented Interfaces:
IcebergMetricsReporter
@ApplicationScoped
@Identifier("default")
public class LoggingMetricsReporter
extends Object
implements IcebergMetricsReporter
Default implementation of
IcebergMetricsReporter that logs metrics to the configured
logger.
This implementation is selected when polaris.iceberg-metrics.reporting.type is set to
"default" (the default value).
By default, logging is disabled. To enable metrics logging, set the logger level for
org.apache.polaris.extension.metrics.reports to INFO in your logging configuration.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new LoggingMetricsReporter that logs metrics to the class logger. -
Method Summary
Modifier and TypeMethodDescriptionvoidreportMetric(@NonNull MetricsReportEnvelope envelope) Reports an Iceberg metrics report for a resolved table.
-
Constructor Details
-
LoggingMetricsReporter
public LoggingMetricsReporter()Creates a new LoggingMetricsReporter that logs metrics to the class logger.
-
-
Method Details
-
reportMetric
Description copied from interface:IcebergMetricsReporterReports an Iceberg metrics report for a resolved table.- Specified by:
reportMetricin interfaceIcebergMetricsReporter- Parameters:
envelope- the metrics report envelope
-