Hierarchy

  • PrometheusMetricsInit

Properties

collectDefaultMetrics?: boolean

By default we collect default metrics - CPU, memory etc, to not do this, pass true here

prom-client options to pass to the collectDefaultMetrics function

preserveExistingMetrics?: boolean

All metrics in prometheus are global so to prevent clashes in naming we reset the global metrics registry on creation - to not do this, pass true here

registry?: Registry

Use a custom registry to register metrics. By default, the global registry is used to register metrics.