Skip to content

Commit

Permalink
Initialize default metrics to 0 (#2888)
Browse files Browse the repository at this point in the history
  • Loading branch information
papabear99 authored Oct 24, 2023
1 parent 1c2ce07 commit d116a4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions monitor/census.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,8 @@ func InitCensus(nodeType NodeType, version string) {
Exporter = pe
// init metrics values
SetTranscodersNumberAndLoad(0, 0, 0)
stats.Record(census.ctx, census.mWinningTicketsRecv.M(int64(0)))
stats.Record(census.ctx, census.mCurrentSessions.M(int64(0)))
}

/*
Expand Down

0 comments on commit d116a4c

Please sign in to comment.