Skip to content
Buy me a coffee

PrometheusOptions

Defined in: src/prometheus.ts:4

optional buckets?: number[]

Defined in: src/prometheus.ts:10

Histogram buckets in seconds.


optional durations?: boolean

Defined in: src/prometheus.ts:12

Record the duration histograms (pipeline and attempt). Default true.


optional labelNames?: string[]

Defined in: src/prometheus.ts:14

Names of extra labels returned by labels (prom-client needs them up front).


optional labels?: (event) => Record<string, string | number>

Defined in: src/prometheus.ts:16

Extra label values for the event counter and duration histograms, e.g. ({ context }) => ({ tenant: String(context.properties.get('tenant')) }).

TelemetryEvent

Record<string, string | number>


optional prefix?: string

Defined in: src/prometheus.ts:8

Metric name prefix. Default resilience_.


optional registry?: Registry<"text/plain; version=0.0.4; charset=utf-8">

Defined in: src/prometheus.ts:6

Default: prom-client’s global registry.