Constructor
Exporter configuration
Callback to be called after a server was started
Static ReadonlyDEFAULT_Collect all metrics from the associated MetricProducer
Optionaloptions: CommonReaderOptionsFlushes metrics read by this reader, the promise will reject after the optional timeout or resolve after completion.
NOTE: this operation MAY continue even after the promise rejects due to a timeout.
Optionaloptions: CommonReaderOptionsoptions with timeout.
Request handler that responds with the current state of metrics
Incoming HTTP request of server instance
HTTP response object used to response to request
ProtectedonProtectedHandle a force flush signal by the SDK.
In all scenarios metrics should be collected via ().
For push exporters, this should collect and report metrics.
ProtectedonHandle once the SDK has initialized this MetricReader Overriding this method is optional.
Shuts down the export server and clears the registry
Select the AggregationOption for the given InstrumentType for this reader.
NOTE: implementations MUST be pure
Select the AggregationTemporality for the given InstrumentType for this reader.
NOTE: implementations MUST be pure
Select the cardinality limit for the given InstrumentType for this reader.
NOTE: implementations MUST be pure
Set the MetricProducer used by this instance. This should only be called once by the SDK and should be considered internal.
NOTE: implementations MUST throw when called more than once
Shuts down the metric reader, the promise will reject after the optional timeout or resolve after completion.
NOTE: this operation MAY continue even after the promise rejects due to a timeout.
Optionaloptions: CommonReaderOptionsoptions with timeout.
Starts the Prometheus export server
Stops the Prometheus export server
A registered reader of metrics that, when linked to a MetricProducer, offers global control over metrics.