Options used to set up monitoring middleware.

Hierarchy

  • IMonitoringOptions

Properties

collectDefaultMetrics?: boolean

collectDefaultMetrics: a flag indicating if default metrics for nodejs should be included into the registry.

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

metricRegistry: a custom prom-client registry to be used to attach custom metrics to.

metrics?: Metric<string>[]

metrics: an array of Metrics to be added to the Registry for metric collection.

metricsPath?: string

metricsPath: the path to mount the monitoring metric endpoint

Generated using TypeDoc