Skip to content

promClientRegistry

promClientRegistry(opts): MetricsRegistry

Defined in: src/metrics/PromClientAdapter.ts:137

Build a MetricsRegistry backed by the supplied prom-client registry. Plug it into ActorSystem.create({ metrics }) (or the framework’s metrics extension) and your /metrics endpoint will include the framework’s counters / gauges / histograms next to your existing app metrics — same registry, same exposition.

collect() returns a snapshot translated from the prom-client side for parity; in practice users read via prom-client.register.metrics() directly and only call collect() from tests.

PromClientAdapterOptions

MetricsRegistry