跳转到内容
简体中文

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