A service config object containing service-id
& environment
values to be used as metric labels.
An object containing monitoring options.
Optional
logger: LoggerA logger object to use for output generated inside the middleware.
A instance of Registry
. This can be used to further configure necessary metrics.
Generated using TypeDoc
Setup a prometheus metric monitoring endpoint using an express application. By default, standard nodejs process metrics are collected. All gathered metrics are exported via a '/metrics' path. If custom metrics are required, they can be defined on a separate metric-registry and passed in as arguments.