PrometheusOptions
Defined in: src/prometheus.ts:4
Properties
Section titled “Properties”buckets?
Section titled “buckets?”
optionalbuckets?:number[]
Defined in: src/prometheus.ts:10
Histogram buckets in seconds.
durations?
Section titled “durations?”
optionaldurations?:boolean
Defined in: src/prometheus.ts:12
Record the duration histograms (pipeline and attempt). Default true.
labelNames?
Section titled “labelNames?”
optionallabelNames?:string[]
Defined in: src/prometheus.ts:14
Names of extra labels returned by labels (prom-client needs them up front).
labels?
Section titled “labels?”
optionallabels?: (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')) }).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Record<string, string | number>
prefix?
Section titled “prefix?”
optionalprefix?:string
Defined in: src/prometheus.ts:8
Metric name prefix. Default resilience_.
registry?
Section titled “registry?”
optionalregistry?:Registry<"text/plain; version=0.0.4; charset=utf-8">
Defined in: src/prometheus.ts:6
Default: prom-client’s global registry.