Optional
collectOptional
defaultprom-client options to pass to the collectDefaultMetrics
function
Optional
preserveAll 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
Optional
registryUse a custom registry to register metrics. By default, the global registry is used to register metrics.
Optional
statfsThe current filesystem usage is reported as the metric
nodejs_fs_usage_bytes
using the statfs
function from node:fs
- the
default location to stat is the current working directory, configured this
location here
By default we collect default metrics - CPU, memory etc, to not do this, pass true here