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.
By default we collect default metrics - CPU, memory etc, to not do this, pass true here