Skip to content

Commit

Permalink
Merge pull request #759 from gzliudan/fix_double_metrics
Browse files Browse the repository at this point in the history
cmd/XDC: fix double metrics collect process issue
  • Loading branch information
gzliudan authored Dec 13, 2024
2 parents b794f6a + 11b7415 commit 66da805
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/XDC/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ func init() {
return err
}
flags.CheckEnvVars(ctx, app.Flags, "XDC")
// Start system runtime metrics collection
go metrics.CollectProcessMetrics(3 * time.Second)

utils.SetupNetwork(ctx)
return nil
Expand Down Expand Up @@ -307,6 +305,7 @@ func startNode(ctx *cli.Context, stack *node.Node, cfg XDCConfig) {
}
// Start metrics export if enabled
utils.SetupMetrics(ctx)

// Start system runtime metrics collection
go metrics.CollectProcessMetrics(3 * time.Second)

Expand Down

0 comments on commit 66da805

Please sign in to comment.