Skip to content

PrometheusExporterOptions

Defined in: packages/exporter-prometheus/src/index.ts:22

Options for prometheusExporter. Values that can’t be used are replaced by the default, with a warning.

optional buckets?: readonly number[]

Defined in: packages/exporter-prometheus/src/index.ts:31

Bucket boundaries, in seconds and increasing, for the response-time and handler histograms.


optional prefix?: string

Defined in: packages/exporter-prometheus/src/index.ts:29

Prefix for every metric name. Default shardlens_.


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

Defined in: packages/exporter-prometheus/src/index.ts:27

Registry to register the metrics on. Default: a new registry, so nothing clashes with your own metrics. One that already holds a metric of the same name is not used.