Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
fix: use collectDefaultMetrics option
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain committed Nov 22, 2022
1 parent ba33924 commit b050685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class PrometheusMetrics implements Metrics {
register.clear()
}

if (init?.preserveExistingMetrics !== false) {
if (init?.collectDefaultMetrics !== false) {
log('Collecting default metrics')
collectDefaultMetrics(init?.defaultMetrics)
}
Expand Down

0 comments on commit b050685

Please sign in to comment.