Class IntervalMetricReader


  • public final class IntervalMetricReader
    extends java.lang.Object
    Wraps a list of MetricProducers and automatically reads and exports the metrics every export interval. Metrics may also be dropped when it becomes time to export again, and there is an export in progress.

    Configuration options for IntervalMetricReader can be read from system properties, environment variables, or Properties objects.

    For system properties and Properties objects, IntervalMetricReader will look for the following names:

    • otel.imr.export.interval: sets the export interval between pushes to the exporter.

    For environment variables, IntervalMetricReader will look for the following names:

    • OTEL_IMR_EXPORT_INTERVAL: sets the export interval between pushes to the exporter.