In-memory Metrics Exporter is a Push Metric Exporter which accumulates metrics data in the local memory and allows to inspect it (useful for e.g. unit tests).

Implements

Constructors

Properties

_aggregationTemporality: metrics.AggregationTemporality
_shutdown: boolean

Methods

  • Ensure that the export of any metrics the exporter has received is completed before the returned promise is settled.

    Returns Promise<void>

  • Returns void

  • Returns a promise which resolves when the last exportation is completed. Further calls to PushMetricExporter.export may not export the data.

    Returns Promise<void>