OptionalcollectcollectDefaultMetrics: a flag indicating if default metrics for nodejs should be included into the registry.
OptionalexpressexpressApp: an express application where the monitoring middleware will be mounted on.
if not specified, a new express app will be created listening on the METRICS_ENDPOINT_PORT port.
OptionalmetricmetricRegistry: a custom prom-client registry to be used to attach custom metrics to.
Optionalmetricsmetrics: an array of Metrics to be added to the Registry for metric collection.
OptionalmetricsmetricsPath: the path to mount the monitoring metric endpoint
Options used to set up monitoring middleware.