Skip to content

Commit

Permalink
Merge pull request #8370 from achouhan09/prometheus_fix
Browse files Browse the repository at this point in the history
Added a fix for prometheusDuplicateTimestamp error
  • Loading branch information
achouhan09 committed Sep 24, 2024
2 parents 6d5783b + ca82443 commit 8860143
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class NodeJsReport extends BasePrometheusReport {
constructor() {
super();

// creating new instance of registry to collect default metrics for nodejs
this._register = new this.prom_client.Registry();

if (this.enabled) {
this.prom_client.collectDefaultMetrics({
register: this.register,
Expand Down

0 comments on commit 8860143

Please sign in to comment.