Aller au contenu
Français

PromClientAdapterOptionsType

Ce contenu n’est pas encore disponible dans votre langue.

PromClientAdapterOptionsType = object

Defined in: src/metrics/PromClientAdapterOptions.ts:9

Plain options-object shape accepted by promClientRegistry.

readonly client: PromClientLike

Defined in: src/metrics/PromClientAdapterOptions.ts:11

The prom-client API namespace (import client from 'prom-client').


readonly optional maxSeriesPerFamily?: number

Defined in: src/metrics/PromClientAdapterOptions.ts:31

Cap on distinct label tuples per metric family, mirroring the DefaultMetricsRegistry cap on the bridge (#131). prom-client mints a series inside its own Counter/Gauge/Histogram on every .labels(...) call and never expires one, so without a cap here the bridge is the more exposed of the two paths. Past the cap the bridge folds further tuples into a single overflow series, leaving prom-client with at most maxSeriesPerFamily + 1 tuples per family.

Default: DEFAULT_MAX_SERIES_PER_FAMILY, the same 10 000 the in-process registry uses; 0 disables the cap.


readonly optional namePrefix?: string

Defined in: src/metrics/PromClientAdapterOptions.ts:18

Optional name prefix, e.g. 'actor_ts_'. Applied to every metric name registered through the adapter. Default: empty.


readonly registry: PromClientRegistryLike

Defined in: src/metrics/PromClientAdapterOptions.ts:13

The prom-client Registry to publish into. Typically client.register.