Collect all metrics from the associated MetricProducer
Flushes metrics read by this reader, the promise will reject after the optional timeout or resolve after completion.
NOTE: this operation will continue even after the promise rejects due to a timeout.
options with timeout.
Handle a force flush signal by the SDK.
In all scenarios metrics should be collected via {@link collect()}.
For push exporters, this should collect and report metrics.
Handle once the SDK has initialized this MetricReader Overriding this method is optional.
Handle a shutdown signal by the SDK.
For push exporters, this should shut down any intervals and close any open connections.
Select the Aggregation for the given InstrumentType for this reader.
Select the AggregationTemporality for the given InstrumentType for this reader.
Select the cardinality limit for the given InstrumentType for this reader.
Set the MetricProducer used by this instance. This should only be called by the SDK and should be considered internal.
To add additional MetricProducers to a MetricReader, pass them to the constructor as MetricReaderOptions.metricProducers.
Shuts down the metric reader, the promise will reject after the optional timeout or resolve after completion.
NOTE: this operation will continue even after the promise rejects due to a timeout.
options with timeout.
Generated using TypeDoc
MetricReader which collects metrics based on a user-configurable time interval, and passes the metrics to the configured PushMetricExporter